Help needed with crazy jumping sprite! Thanks!
Author |
Message |
Emmie
![](http://compsci.ca/v3/uploads/user_avatars/18356949784638f1029c3a4.png)
|
Posted: Tue May 29, 2007 8:57 am Post subject: Help needed with crazy jumping sprite! Thanks! |
|
|
Hey there everyone. 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! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Emmie
![](http://compsci.ca/v3/uploads/user_avatars/18356949784638f1029c3a4.png)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Albrecd
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Emmie
![](http://compsci.ca/v3/uploads/user_avatars/18356949784638f1029c3a4.png)
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
|
|