How create wind?

Get help using Construct 2

» Fri Mar 30, 2012 9:28 pm

Direction of wind must push ball when is kicked.
Wind randomly change from left to right
Blows harder once again less
B
119
S
32
G
52
Posts: 1,896
Reputation: 39,074

» Fri Mar 30, 2012 10:37 pm

check my old falling leaves capx.
fallingLeaves.capx
Last edited by Yann on Sun Sep 14, 2014 9:17 pm, edited 1 time in total.
B
69
S
22
G
14
Posts: 1,488
Reputation: 16,594

» Fri Mar 30, 2012 10:45 pm

hmmm man, I have no idea, maybe you should add random or time based events to simulate the wind, like changing the objects acceleration, or maybe set up a global variable "wind" that randomly influences how "strong" is the kick .

Sorry for the lack of knowledge on the subject man!! I just started with C2, but there's probably a way to simulate what you want. :)
B
13
S
4
G
2
Posts: 20
Reputation: 2,655

» Sat Mar 31, 2012 7:48 am

physics. You can try to tweak the gravity on a certain object or tweak the physics.
B
23
S
6
G
3
Posts: 194
Reputation: 6,005

» Sat Mar 31, 2012 11:07 am

Yann's example and direction of gravity? yeah i try
B
119
S
32
G
52
Posts: 1,896
Reputation: 39,074

» Sat Mar 31, 2012 8:40 pm

If you use physics, yeah, just apply a constant force to all your physics objects (family perhaps?) in the direction you want the wind to go.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

» Sat Mar 31, 2012 9:27 pm

i need to push randoomly soccer ball this is all
B
119
S
32
G
52
Posts: 1,896
Reputation: 39,074

» Mon Apr 02, 2012 1:44 am

If it's just one object, you could make it custom movement, then apply angular momentum to its existing speed/angle.

I made a quick example - it should lerp between the angle its moving and the angle of the wind/force.

Use the sliders to adjust - it's not perfect but should give you a starting point.

Right mouse to apply force ( hold down button ).

B
27
S
9
G
5
Posts: 495
Reputation: 11,964

» Mon Apr 02, 2012 12:01 pm

This is nice !!! i looking for that example :)
B
119
S
32
G
52
Posts: 1,896
Reputation: 39,074

» Mon Apr 02, 2012 2:46 pm

@JohnnySix its difficult to create such thing?
B
119
S
32
G
52
Posts: 1,896
Reputation: 39,074

Next