Holding key makes character jump when it lands?

Get help using Construct 2

Post » Tue Jan 21, 2014 9:59 am

[QUOTE=LittleStain] on key pressed - simulate jump

on landed
key is down - simulate jump.[/QUOTE]

Have you tried this?
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 » Tue Jan 21, 2014 10:44 am

http : //i41 . tinypic . com / 15wz6zk . jpg

Is this what you mean? If so, unfortunately, this doesn't work either :(
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Post » Tue Jan 21, 2014 10:48 am

Make it two seperate events and it will work.

on w pressed - simulate jump

on platform landed
w is down - simulate jump.

this works.

edit: I used on landed and not is on floor.
It's an event that only triggers once if true.LittleStain2014-01-21 10:49:45
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 » Tue Jan 21, 2014 11:32 am

[QUOTE=LittleStain] Make it two seperate events and it will work.

on w pressed - simulate jump

on platform landed
w is down - simulate jump.

this works.

edit: I used on landed and not is on floor.
It's an event that only triggers once if true.[/QUOTE]

Wow, thank you, this is perfect!! Works exactly as I wished, thanks again! :D
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Post » Thu Jan 23, 2014 1:19 pm

Just wanted to ask, how can I get this to also work for the default arrow key UP jump button? I tried adding the same exact events but assigning them to Arrow Key Up and it doesn't work, but it's fine if I change it from, say, 'w' key to, say, the 'space bar'. Any ideas?
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Post » Thu Jan 23, 2014 1:26 pm

It should also work for the arrow key up, but you'd have to turn off the use default in the behaviour itself, because the default controls will conflict.

So turning of the default controls and recreating them in events and adding this should work.
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 » Thu Jan 23, 2014 9:48 pm

Thank you so much, I'll just re-add the arrow keys movement and it'll work great, thanks again, @LittleStatin, you've been invaluable so far for helping me learn C2! :D
B
41
S
12
G
14
Posts: 1,120
Reputation: 11,259

Previous

Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, PROxMTswatTR and 25 guests