Fantasy computer for making, playing and sharing tiny games. · By Nesbox
So I want to make something that moves toward the mouse at a constant speed. Something like this gif. How would I be able to do that?
This is the method:
Although written in a different language (Basic), it's very straightforward to convert to Lua :D
Interesting. Is there an equivalent of getAngle() in lua?
In that example getAngle() is just a function that returns an atan2 value. That's available in Lua and is all you need to get the desired effect.