Discuss Scratch
- Discussion Forums
- » Project Ideas
- » make a really cool play button animation for any game (this is worth it for sure!!)
- EWard22
-
Scratcher
9 posts
make a really cool play button animation for any game (this is worth it for sure!!)
Have you ever struggled to make the perfect play button but didn't know how to script a good animation?
Well this is the sprite for you
first things first let's make the play button
create a new sprite name play button, and customize it however you'd like
write this code to play animations that give the vibe that this is a well-made play button
Well this is the sprite for you
first things first let's make the play button
create a new sprite name play button, and customize it however you'd like
write this code to play animations that give the vibe that this is a well-made play button
when green flag clicked
forever
if <touching [mouse-pointer] ?> then
change size by (((130) - (size)) / (2))
else
change size by (((100) - (size)) / (2))
end
point in direction ( ((90) + (([ sin] of ((timer) * (100))) * (6))))
[quote]moves the sprite left and right with a smooth animation[/quote]
[quote]feel free to change any of the number values[/quote]
set y to ((-88) + (([ sin] of ((timer) * (150))) * (4)))
[quote]this code makes the sprite move up and down[quote]
[quote]change -88 to any value this is where your sprite will be placed[/quote]
[quote]feel free to change any of the number values[/quote]
end
- RadiusGames46
-
Scratcher
100+ posts
make a really cool play button animation for any game (this is worth it for sure!!)
- cosmosaura
-
Scratch Team
1000+ posts
make a really cool play button animation for any game (this is worth it for sure!!)
Have you ever struggled to make the perfect play button but didn't know how to script a good animation?"Hello! It's great that you want to help out other Scratchers. However, I think we have enough guides in the forums at the moment. Please feel free to welcome new Scratchers on the group welcoming topic or on individual topics created by New Scratchers.
Well this is the sprite for you
first things first let's make the play button
create a new sprite name play button, and customize it however you'd like
write this code to play animations that give the vibe that this is a well-made play buttonwhen green flag clicked
forever
if <touching [mouse-pointer] ?> then
change size by (((130) - (size)) / (2))
else
change size by (((100) - (size)) / (2))
end
point in direction ( ((90) + (([ sin] of ((timer) * (100))) * (6))))
[quote]moves the sprite left and right with a smooth animation[/quote]
[quote]feel free to change any of the number values[/quote]
set y to ((-88) + (([ sin] of ((timer) * (150))) * (4)))
[quote]this code makes the sprite move up and down[quote]
[quote]change -88 to any value this is where your sprite will be placed[/quote]
[quote]feel free to change any of the number values[/quote]
end
Other places that can always use more helpful Scratchers like you, are the “”Help With Scripts“” and “”Questions About Scratch“” areas - please use them as designed, by responding to topics created by folks with problems to solve

Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization."
- Discussion Forums
- » Project Ideas
-
» make a really cool play button animation for any game (this is worth it for sure!!)


