How do I make my char keep moving?

Get help using Construct 2

Post » Fri Mar 21, 2014 2:13 pm

hi how to make my char keep moving to one direction whenever i put touch behavior?
ex: when i touch the screen, the char keep moving to the right and when i touch the screen again it moving to the left, so it's change vector direction when i touch the screen
B
3
Posts: 1
Reputation: 177

Post » Fri Mar 21, 2014 2:19 pm

You can add platform behaviour to your char, add a boolean variable to it as well (direction for example).
Then on your event sheet add the following
Every tick>
|_> Player.direction = 0 > Player> Platform simulate control> pressing right
|_> Player.direction = 1 > Player> Platform simulate control> pressing left

On any touch> Player > Toggle direction (toggle boolean action)
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643


Return to How do I....?

Who is online

Users browsing this forum: Davlin, Madave96 and 6 guests