How do I do a push effect/wind

Get help using Construct 2

Post » Mon Jun 06, 2016 10:25 pm

I need to know how to do this for one of my levels.I saw one forum do it but he/she didn't put the capx.
B
10
S
4
Posts: 10
Reputation: 720

Post » Mon Jun 06, 2016 11:59 pm

There's probably a bunch of ways to do this - but here's one. Assuming you're using the standard platform behaviour. Set up a global variable called 'wind' which you can toggle on and off - when it's true set your characters max speed to a low speed and when it's false revert it back to the default. Here's a quick .capx to demonstrate - it can probably be done more efficiently, but it shows a system that works anyway. https://www.dropbox.com/s/oq6uujtldm87aqv/wind.capx?dl=0
B
67
S
25
G
4
Posts: 212
Reputation: 7,084

Post » Tue Jun 07, 2016 4:12 am

thanks mate
B
10
S
4
Posts: 10
Reputation: 720

Post » Tue Jun 07, 2016 11:47 am

For horizontal currents, you could give your character/object family a second platform behavior whose actions are only simulated when you stand in a windy area. I think you'll need to have its jump strength and falling speed be the same as the main plaform behavior, and set its gravity to zero.

As for vertical shenanigans, a 8-way behavior could work.

Current strength could be set just like Signaljacker said, only using those two new behaviors instead of the main one. You could also give your wind-generating object(s) an instance variable which'll be used to determine the new behaviors' max speed property.

I've got an engine on the arcade that uses those methods :
https://www.scirra.com/arcade/action-ga ... ewhat-7374
B
12
S
3
Posts: 33
Reputation: 897

Post » Tue Jun 07, 2016 5:12 pm

thanks i will use this for my space level
B
10
S
4
Posts: 10
Reputation: 720

Post » Tue Jun 07, 2016 5:40 pm

Glad to help :D

What kind of game is it?
B
12
S
3
Posts: 33
Reputation: 897

Post » Tue Jun 07, 2016 6:18 pm

rpg platformer
B
10
S
4
Posts: 10
Reputation: 720


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests