How create wind?

Get help using Construct 2

Post » 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
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » 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
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » 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
12
S
4
G
2
Posts: 20
Reputation: 2,625

Post » Sat Mar 31, 2012 7:48 am

physics. You can try to tweak the gravity on a certain object or tweak the physics.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Mar 31, 2012 11:07 am

Yann's example and direction of gravity? yeah i try
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » 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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Mar 31, 2012 9:27 pm

i need to push randoomly soccer ball this is all
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » 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 ).




Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Mon Apr 02, 2012 12:01 pm

This is nice !!! i looking for that example :)
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Mon Apr 02, 2012 2:46 pm

@JohnnySix its difficult to create such thing?
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Next

Return to How do I....?

Who is online

Users browsing this forum: Radulepy and 7 guests