Problems moving a bitmap sprite

Started by
9 comments, last by Sir_Spritely 22 years, 2 months ago
Use the debug mode to break the program whenever the left key is pressed. Now once thats been done check to see what the value of paddle_x is BEFORE it''s altered, it should be zeor on the first run. Now ste through the rest of the if statement and make sure it''s working OK.

Now let the program run again and press left again, whats the value of paddle_x this time? If it''s zero again then it''s being reset outside the function and you need to find where it''s being set to zero.

If it''s not step the program down to the draw bitmap function and make sure that paddle[0].x is non zero.


zipless

/* Ignorance is bliss, then you go and spoil it by learning stuff */
/* Ignorance is bliss, then you go and spoil it by learning stuff */

This topic is closed to new replies.

Advertisement