[solved]How do I control the keyboard?

Get help using Construct 2

Post » Sat Jul 18, 2015 7:02 pm

Hey guys,
I have a box that jumps whenever I press a key, I want to keep him jumping if the key is not released, any ideas? please help.
Last edited by Moun glow on Sun Jul 19, 2015 10:13 am, edited 1 time in total.
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Sat Jul 18, 2015 7:11 pm

What do you mean with keep jumping?
Go further upwards or when landing jump again?
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 18, 2015 7:57 pm

let say when I press SPACE my box jumps and fall to the ground, what I want:: if I keep pressing(without releasing it) space he jumps and when he lands he rejump and so on until I release SPACE he stops jumping??
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Sat Jul 18, 2015 8:16 pm

I'm not sure what behaviour you are using, but if you are using platform it would be something like:

Box on landed
keyboard space is down
> box platform simulate pressing jump
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 18, 2015 8:34 pm

try :

system : every 0.1 second → box : simulate platform pressing jump

in your box, platform behavior should be present
B
21
S
8
Posts: 86
Reputation: 1,671

Post » Sat Jul 18, 2015 8:41 pm

Message: Moun glow is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Sat Jul 18, 2015 8:50 pm

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 18, 2015 9:05 pm

here is the link to my event sheet:
drive.google.com/file/d/0B2_3fSAI6FsAbXcyMVBoOXJUdXc/view?usp=docslist_api

whenever I use the "on key down" the box keep rotating on the ground when he finish his first jump and doesn't rejump??? ,please help.
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Sat Jul 18, 2015 9:16 pm

are you try what i was posted in my previous post ?
B
21
S
8
Posts: 86
Reputation: 1,671

Post » Sat Jul 18, 2015 9:22 pm

yeah androidpro I tried it and the box rejump like I want it but their is a problem in the rotation it doesn't rotate as the first jump??
B
11
S
2
G
1
Posts: 84
Reputation: 852

Next

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, jorgmaquoi, Rable, unicornspitfire and 11 guests