Im trying to make an object spin constantly around another player controlled object. For example, I want the player to be able to move a sprite (let's call it spr_a) around the layout like a top-down shooter. I already am aware how to do that. But how do I make (spr_b) rotate quickly around it like a shield, wherever the sprite is moved. Hopefully that made sense lol. Thanks guys!
You could use the Lenghtdir() function, which returns the position of a point in a radius of x pixels around another point in an y angle.
To tweak the rotating speed, simply increase or decrease the rotation_angle change every tick.
Develop games in your browser. Powerful, performant & highly capable.
Ah ok, I'll try that. Thanks!