Keep the direction when pressing a button

Get help using Construct 2

Post » Wed Dec 11, 2013 9:18 pm

Hi

In the 8 directional movement, I'm thinking about making the player keep the direction the player facing by keep holding the shift button, any idea how to do that?

thank youdesolator2013-12-11 21:18:45
B
5
Posts: 15
Reputation: 305

Post » Wed Dec 11, 2013 10:07 pm

Hello!
Something like this?
Or even this to make it look a little better:)

Hope that helps JJList2013-12-11 22:21:28
B
18
S
5
G
1
Posts: 74
Reputation: 2,672

Post » Wed Dec 11, 2013 10:24 pm

I can open the files you sent, it's saying that you are using a newer version than mine , I check the website and it seems that they didn't update the free version yet.
But thank you for the reply and the files.desolator2013-12-11 22:25:44
B
5
Posts: 15
Reputation: 305

Post » Wed Dec 11, 2013 10:47 pm

No problems:)
First example

And a second one


upd: my bad, you dont need "Every tick" condition in a second picture.JJList2013-12-11 22:49:47
B
18
S
5
G
1
Posts: 74
Reputation: 2,672

Post » Wed Dec 11, 2013 11:01 pm

And by the way, that is strange. what version of C2 do you have?
Try downloading latest beta release.
B
18
S
5
G
1
Posts: 74
Reputation: 2,672

Post » Wed Dec 11, 2013 11:24 pm

Thank you for the sheets but I think you misunderstood me.
the player should move freely, but when i press the shift button i need it to keep facing the direction until i release the shift button.
example : player is moving and now it's facing the top right then i pressed the shift button, the player should keep facing the top right but moving freely to any direction.
B
5
Posts: 15
Reputation: 305

Post » Wed Dec 11, 2013 11:45 pm

I'm pretty sure that is exactly what my examples do.. Am I wrong?:)
Did you try to recreate those events?

B
18
S
5
G
1
Posts: 74
Reputation: 2,672

Post » Wed Dec 11, 2013 11:58 pm

Yes it's working i think it didn't work because i didn't set the Angle to No.
And yes i just downloaded the latest version from the link you sent me.
Thank you so much for your help.
B
5
Posts: 15
Reputation: 305

Post » Thu Dec 12, 2013 12:06 am

Anytime, mate :)
B
18
S
5
G
1
Posts: 74
Reputation: 2,672


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests