Wind/Push Effect (Solved)

Get help using Construct 2

Post » Sun Mar 31, 2013 12:36 am

So, I'm having difficulty searching SCIRRA through their search forum functionality and I'm not weaving through 300 odd pages to see if someone has made a topic about this :p

Hopefully someone can help me.

I'm still new to the whole construct 2 thing and just wondering how I can create a sort of affected area that pushes the character in one direction and stop when they leave it.

I have would like to have this sort effect appear as if a fan is blowing the player up towards the sky (Y axis) and when they move away it stops/gets weaker.

I've tried it in ways that I thought it was suppose to be made but currently all I do is go up when I go near it and never land even when I exit it and it doesn't let me add Else events either so it becomes more difficult. (I haven't got the hang of things yet :P)

edit:

Solved.
asmashedpotato2013-03-31 18:38:02
B
7
Posts: 10
Reputation: 945

Post » Sun Mar 31, 2013 2:22 am

Make a big invisible sprite and if the player is collided with it, apply force (if youre using physics) to the player in the direction you want.
I guess if you arent using physics you can constantly set the X or Y direction by a small amount of pixels every tick in the direction you want.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sun Mar 31, 2013 2:36 am

You probably aren't clicking far enough to the left on your event to get the Add/Else menu. You are clicking on the condition.
ImageImage
B
66
S
19
G
121
Posts: 3,195
Reputation: 72,852

Post » Sun Mar 31, 2013 3:39 am

[QUOTE=blackhornet] You probably aren't clicking far enough to the left on your event to get the Add/Else menu. You are clicking on the condition.[/QUOTE] I find that annoying, I even submitted that as a bug, I'd love a more intuitive way to get the Add/Else menu.
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Sun Mar 31, 2013 3:58 am

There a sample in arcade but it's broken, i've reported to tom
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sun Mar 31, 2013 2:24 pm

Thanks guy I'll try it real soon.

I use hotkeys on event pages and the Else menu is always greyed out.

Edit

Currently uploading my work for those who can try and help.

I'm still not understanding how the game defines when the player is touching the sprite and when it's not.

I'm calling the collision of the player and object to set the gravity to 0 so the player floats, will I have to call the player again if he isn't touching the sprite to set the gravity to 1280?

I've uploaded it and am sharing it to those who wish to help.
(I have less than 500 rep so I cannot submit a link, private message to obtain the capx.)

(ps. Version used to save the capx is 123.2 64bit.)                                          asmashedpotato2013-03-31 15:56:15
B
7
Posts: 10
Reputation: 945

Post » Sun Mar 31, 2013 6:34 pm

I've finally got it.



(for those who wish to understand how it's done).
B
7
Posts: 10
Reputation: 945

Post » Sun Feb 02, 2014 12:05 pm

I tried the same thing and nothing appears ... I wanted to do something as a fan, to be close to you back then backwards, but I also interested to jump, you go up into the air. you have the CapX yet?
B
13
S
2
Posts: 297
Reputation: 1,717


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests