Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Speed of Sprite.
- LightningSword99
-
11 posts
Speed of Sprite.
I have a project that's filled with animated sprites, and they all have this block,
https://scratch.mit.edu/projects/128594805/#editor Here's the link to the project, and the sprite is “phoenix-normal(b)”
wait (.1215) secsto make them move a certain speed, but some were slower than others, so I used a block,
define Speedand this made the sprites go the speed they were supposed to go, but now it won't switch to the first costume in the sprite when it repeats. Can someone help me solve this?
wait (.1215) secs
https://scratch.mit.edu/projects/128594805/#editor Here's the link to the project, and the sprite is “phoenix-normal(b)”
Last edited by LightningSword99 (Nov. 12, 2016 23:58:59)
- Extremguy
-
100+ posts
Speed of Sprite.
Here I think I fixed your stuff and I made it way more cleanier for you. I just put all the costumes into 1 sprites for the animation and I used some lists for and a custom block to make the animation. Here are the lists:
ANIMATION_NAME: The list holding all the animations name
ANIMATIONA_BEGIN: The list that hold costumes that begin an animation
ANIMATION_SPEED: The list that hold at which speed an animation goes (in seconds)
ANIMATION_END: The list that hold costumes that end an animation
ANIMATION_SIZE: The size of an animation
ANIMATION_X: Where is the animation located on the X axis on the screen
ANIMATION_Y: Where is the animation located on the Y axis on the screen
It makes that you can have the same animation but you could make it bigger , or at different position or different speed without to have to add new costumes for nothing, you just have to place the animation frame in the right order if you wanna add your own and set all these lists for a new animation.
ANIMATION_NAME: The list holding all the animations name
ANIMATIONA_BEGIN: The list that hold costumes that begin an animation
ANIMATION_SPEED: The list that hold at which speed an animation goes (in seconds)
ANIMATION_END: The list that hold costumes that end an animation
ANIMATION_SIZE: The size of an animation
ANIMATION_X: Where is the animation located on the X axis on the screen
ANIMATION_Y: Where is the animation located on the Y axis on the screen
It makes that you can have the same animation but you could make it bigger , or at different position or different speed without to have to add new costumes for nothing, you just have to place the animation frame in the right order if you wanna add your own and set all these lists for a new animation.
- LightningSword99
-
11 posts
Speed of Sprite.
I appreciate the help, but honestly, that's a bit too complicated for my brain to handle. Also, no offense, but how i'm making it seems to work better for me.
- Extremguy
-
100+ posts
Speed of Sprite.
It's not complicated , it basically a tool that make animating easier , than having 300 sprites with the same script over and over.
- Discussion Forums
- » Help with Scripts
-
» Speed of Sprite.