How do I lock current player angle

Get help using Construct 2

Post » Fri Jul 08, 2016 5:05 am

So, i want to make some top down shooter game with 8 direction behavior. but i struggle for the event. i want if i press some button (ex. E) then it will lock the current angle, so if i move other direction, the player will keep his angle.
I'm still new with this software :)
Posts: 1
Reputation: 177

Post » Fri Jul 08, 2016 7:32 am

Probably the simplest way would be to make the player consist of two objects, one invisible base for the 8-Direction behavior and one visible character graphic with Pin behavior. Use Pin to make sure the player stays with the base object at all times.

Now you can use an event such as,

If button E is not pressed -> Set Player angle to Base angle

This means that the player object will point in the same direction as the base unless E is being held down.
Posts: 306
Reputation: 13,964

Return to How do I....?

Who is online

Users browsing this forum: Asmodean, burak22, fbarraza28, JoniArtha and 3 guests