# how do I simulate winds?

This forum is currently in read-only mode.
0 favourites
• 8 posts
• Hi

as the title says, any1 know a way to simalate winds during a game?

I tryed using the physics behavior with some 'wind objects' moving horizontaly but they always move alot of things with alot of mass even if I put to be destroyed after contact..

any tips or ideas??

• This is me shooting in the dark, but if I thought about trying to implement that, I'd try to have a big invisible sprite/box overlaying a certain section of the level, and if the player was overlapping said sprite or box, I'd change his movement attributes, or have something that constantly pushed him back.

But that's only if you want the player to be affected by the wind.

• the winds need to work with some boxs that are with physics behavior

but it cant move all of em if there is alot of boxes behind

• the winds need to work with some boxs that are with physics behavior

but it cant move all of em if there is alot of boxes behind

Apply a force to the boxes in the direct of the wind (Possibly making it strong as it get's close to the source. Using maybe the line of sight object, test if the boxes can see the source, if not cut the amount of force WAY down.

EDIT: And certainly include an area of effect box if needed.

• > the winds need to work with some boxs that are with physics behavior

>

> but it cant move all of em if there is alot of boxes behind

>

Apply a force to the boxes in the direct of the wind (Possibly making it strong as it get's close to the source. Using maybe the line of sight object, test if the boxes can see the source, if not cut the amount of force WAY down.

EDIT: And certainly include an area of effect box if needed.

Its an idea too, i'm gonna try it certanly.. but any idea about if there are many boxes side by side it would be hard to move 'em all?

the idea is to make a strong ''base'' so they ill not move by the wind.. the function of the wind is to make the life of the player harder

• what do you need the wind to do or move?

physics behavior is huge overkill if you only want a few particles flailing around.

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Was something like this what you had in mind?

http://dl.dropbox.com/u/10316081/wind.cap

• Was something like this what you had in mind?

http://dl.dropbox.com/u/10316081/wind.cap

yes!!!11

had no idea of that force thing, thanks a lot!