How to make my character float in the air?

Get help using Construct 2

Post » Fri Oct 18, 2013 3:29 am

I want to use an umbrella...
B
5
S
1
Posts: 9
Reputation: 429

Post » Fri Oct 18, 2013 6:38 am

I would suggest using balloons, for they have more floating power.

But seriously, I guess floating in this case means falling at a slower pace, so all you have to do is reduce the falling speed.

I don't know what kind of game you are trying to make and what behaviour you are using, so I can't be more specific.
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 Oct 19, 2013 2:31 am

yes, i want to reduce the falling speed pressing the button space. can you teach me?
B
5
S
1
Posts: 9
Reputation: 429

Post » Sat Oct 19, 2013 2:40 am

[QUOTE=LittleStain]I don't know what kind of game you are trying to make and what behaviour you are using, so I can't be more specific.[/QUOTE]

You'll need to give more information. But I'm assuming you are using the Platform behavior, so just do

Space is Down -> Player Set Max Fall Speed to 100
Else -> Player Set Max Fall Speed to 500

Numbers are guesses, you can change them.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sat Oct 19, 2013 3:25 am

really thanks <3 but I still have a doubt. in the air a I can press and hold the space button frequently. I want to press just once each jump
B
5
S
1
Posts: 9
Reputation: 429

Post » Sat Oct 19, 2013 4:01 am

Gve the player an instance variable called Floated with the type set to boolean. Then, do these events:

On Space Pressed and Player Is Not On Floor (do is on floor then press I to invert) and Floated is False
-> set Floated true
-> set Max Fall Speed to 100

On Space Released
-> set Max Fall Speed 500

Player Is On Floor and Trigger Once
-> set Floated False

I can't guarantee this will work, it's all if the top of my head and I can't test it.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sat Oct 19, 2013 6:30 pm

Space is pressed
character is falling

> toggle boolean
-- boolean is set
> set maxfallspeed to 100
> set animation "umbrella"
-- x(invert) boolean is set
> set maxfallspeed to 500
> set animation "fall"

character is on floor
-> set boolean falsemindfaQ2013-10-19 18:31:55
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sun Oct 20, 2013 4:58 am

can you send a image please? i am really newbie
B
5
S
1
Posts: 9
Reputation: 429

Post » Sun Oct 20, 2013 5:19 am

i understood that i need to put a variable boolean in my character.
but i did not understand
-- boolean is set
and
-- x(invert) boolean is set
where do i find this? and all this part it's in just one event?

first event:
Space is pressed
character is falling
> toggle boolean
-- boolean is set
> set maxfallspeed to 100
> set animation "umbrella"
-- x(invert) boolean is set
> set maxfallspeed to 500
> set animation "fall"

second event:
character is on floor
-> set boolean false

and what is the meaning of these symbols? -- and > ?
B
5
S
1
Posts: 9
Reputation: 429

Post » Mon Oct 21, 2013 6:19 am

-- stands for a subevent
> stands for an action



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

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests