How do I Disable controls?

Get help using Construct 2

Post » Wed Jul 15, 2015 1:58 pm

This is probably really easy... but i cant get it to work. Here's what I need:
So when the player dies he plays an animation of him dying. My problem is when you press left or right my character gets up and starts running around. How can i disable keyboard input?

Posts: 37
Reputation: 463

Post » Wed Jul 15, 2015 4:06 pm

Rather than doing it that way, I would be inclined to give your player a "state" (which could be closely related to the animation - you could actually *use* the animation Name if you wanted but it's a hack you might regret) - alive / dead / whatever as an instance variable, and only move when the player is alive.

To physically stop it working you can enable/disable the 8Direction behaviour (depends how you are moving your player)
My tutorial through development blog is at
Posts: 221
Reputation: 1,328

Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Metathronos and 20 guests