If you want your sprite to stop, rather than start to move in the other direction, you'll need to use a conditional to check that the sprite is moving in the correct direction before you use the counter pattern, and stop the sprite if it isn't. This can make it look like your sprite is jumping or has been thrown in the air. Once a sprite has slowed down to a stop, it will start speeding in the other direction. To slow down a sprite with a negative velocity, you need to add to the velocity inside the counter pattern. To slow down a sprite that has a positive velocity, you need to subtract from the velocity inside the counter pattern. To speed up a sprite with a negative velocity, you need to subtract from the velocity inside the counter pattern. To speed up a sprite that has a positive velocity, you need to add to the velocity inside the counter pattern. This makes the sprite speed up or slow down. I've tried a bunch of things and can't seem to get it to work. ![]() I want them to be drawn based on the vertical speed (which is then applied to y). ![]() I have eight frames, four frames going up, four frames coming back down. You can use a sprite's velocity properties with the counter pattern to change a sprite's velocity during the program. 13 October 2022 Do you want to add cool animations to your game Youre in the right place. I've animated all movements but am struggling to implement the jump animation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |