How do I "press F to enter" 2D sidescroller

Get help using Construct 2

Post » Sat Jul 26, 2014 6:50 am

Hi! I'm working on a project, but I don't know how to set the event to "press F" and transition to the next layout ONLY when I have my character standing over the walkway. Can someone help? Here's an image.
Image
That event highlighted is the one I want to use. Someone help?
B
2
Posts: 2
Reputation: 150

Post » Sat Jul 26, 2014 7:04 am

on key pressed F
player is overlapping door - system goto layout
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jul 26, 2014 7:06 am

It's not entirely clear what you want, but.. add the keyboard plugin and do

Keyboard: On F pressed --> <do action>

to detect the 'F' key (I'm sure you already know that) but as far as 'only when standing over walkway', can you check your character's Y position? Or have an invisible sprite slightly larger that your character and check for overlapping with the walkway? Is that what you mean? Then use the 2 conditions together.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sat Jul 26, 2014 7:29 am

Thanks fellas, it works now! This is a great system, hey?
B
2
Posts: 2
Reputation: 150


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests