angle = 90;
directional_velocity = 5; // accelerate with 5f/fps
//angle = 270 sets the direction to down
//angle = 180 sets the direction to left
//angle = 90 sets the direction to up
//angle = 0 sets the direction to right
angle += 5;
directional_velocity = 2;
angle += 5 + tan(angle);
directional_velocity = 5;
lcl wrote:I'm pretty sure he meant rotating the actor.
As an answer for that, sadly you can't do that just by code as it stands. You'll have to make an animation of the sprite rotating 360 degrees. You can make the animation have 8, 16, 32, etc. amount of different angles, it depends on how precise you want the rotation to be. There are tools that can rotate the image for you, if you don't feel like using an image manipulation program to create the different angle frames.
xenidius93 wrote:I want to make turning actor. It should be in Draw Actor > Script Editor, but how to do this?
Users browsing this forum: Google [Bot] and 1 guest