How to make my character jump once on hold key

Get help using Construct 2

Post » Sat Nov 17, 2012 6:50 pm

How to make my character stop jumping non stop when i hold the up arrow.
I read there is option Allow buny hoping, but cant find it.
B
3
Posts: 4
Reputation: 383

Post » Sat Nov 17, 2012 9:33 pm

You could use variables:

An instance variable on the character called "Jump" for example

If Jump = 1
Up arrow down
----->Jump character
----->Set variable Jump to 0

If Up arrow released -----> Jump = 1
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Sun Nov 18, 2012 7:53 am

Sorry but i cant follow, im new to the program and im not good with variables and avents.
B
3
Posts: 4
Reputation: 383

Post » Sun Nov 18, 2012 8:33 am

I just tested the Platform behaviour and by default the character won't jump again until I release and press the up arrow a second time.

What is happening for you and what behaviours are you using? If you like, post the capx file (you can freely host it using http://www.dropbox.com/).
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Sun Nov 18, 2012 9:30 am

Found the problem:

Now if i can figure out how to make longer jump on key down without bunny hoping
And i cant post links - under 500 reppromi2012-11-18 10:06:38
B
3
Posts: 4
Reputation: 383

Post » Sun Nov 18, 2012 11:40 am

Ok i cant figure it out, can some one help me.
This is my event sheet, sorry cant post links.
I want character jump height to depend on jump key down
and not countiosly jumping from the ground if i dont release it.

B
3
Posts: 4
Reputation: 383


Return to How do I....?

Who is online

Users browsing this forum: abdalghani, Yahoo [Bot] and 22 guests