Discuss Scratch

InternetRoyal
New Scratcher
14 posts

Gliding Speed

Currently I am making a game and the sprite is gliding to a random x postion for -240 to 240, but since glide is set to one the glide is often really slow or really fix, so i was wondering if there was a way to speed up or slow down according to which x coordinate its going to
KittyCat2841
Scratcher
14 posts

Gliding Speed

Instead of putting a number drag a pick random block into it.
InternetRoyal
New Scratcher
14 posts

Gliding Speed

KittyCat2841 wrote:

Instead of putting a number drag a pick random block into it.
Thats what i did.

I am trying to figure out how to make it go faster or slower depending on how far away the random coordinate is
27wangdb
Scratcher
99 posts

Gliding Speed

Set a variable to the distance to the coordinates and make that the seconds it takes to get there. You will need to adjust the variable a little with operators but it should work.

Powered by DjangoBB