Computer Science Canada

Help needed with crazy jumping sprite! Thanks!

Author:  Emmie [ Tue May 29, 2007 8:57 am ]
Post subject:  Help needed with crazy jumping sprite! Thanks!

Hey there everyone. Smile I have my little kirby sprite, and he's moving just fine but he's not eating/sucking in things so well. When I hit the 'x' button he's supposed to eat. He eats, however, the sprite jumps forward to the furthest movement barrier I've set up. In the code I didn't change the x or y values so I'm not sure why he's jumping all over the place.

Last time I had this problem I took away a delay and it didn't jump, but when I try that now it just jumps faster. Does anyone have any suggestions? Thanks so much!

Author:  Emmie [ Tue May 29, 2007 8:58 am ]
Post subject:  Re: Help needed with crazy jumping sprite! Thanks!

Sorry, I also forgot to mention that when he's done eating he returns to his former position on the screen.

Author:  Albrecd [ Tue May 29, 2007 12:12 pm ]
Post subject:  Re: Help needed with crazy jumping sprite! Thanks!

Could you post your code so we can have a look?

Author:  Emmie [ Wed May 30, 2007 9:53 am ]
Post subject:  Re: Help needed with crazy jumping sprite! Thanks!

I figured it out. Thanks so much for replying anyways Albrecd!


: