Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Gliding to my mouse
- JungleHornet
-
5 posts
Gliding to my mouse
Is there a way to make a sprite glide to my mouse at a set speed until it gets to my mouse whenever I press space?
- JungleHornet
-
5 posts
Gliding to my mouse
the problem with that is that would glide to my mouse over a second, going different speeds depending on how far away my mouse is. I want something to gile to my mouse at the same speed every time, regardless of how long it would take to get there. I think this script might work:
- JungleHornet
-
5 posts
Gliding to my mouse
no i just decided to go with a different movement system in my game.Did that work? nevermind
- AwezomeXD
-
100+ posts
Gliding to my mouse
Oh, well if you still want to attempt the old movement system this script might work (the decimal in the multiplication block controls the speed) Completely misread your post, sorry, this code below won't work in your case.no i just decided to go with a different movement system in my game.Did that work? nevermind
However, if you don't mind changing the direction of your sprite, you could probably do this for the sprite to move at a consistent speed:
Last edited by AwezomeXD (Nov. 12, 2021 16:23:55)
- Discussion Forums
- » Questions about Scratch
-
» Gliding to my mouse