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
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

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
66
S
22
G
14
Posts: 1,484
Reputation: 16,511

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
13
S
4
G
2
Posts: 20
Reputation: 2,655

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
6
G
3
Posts: 194
Reputation: 5,950

Post » Sat Mar 31, 2012 11:07 am

Yann's example and direction of gravity? yeah i try
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,689

Post » Sat Mar 31, 2012 9:27 pm

i need to push randoomly soccer ball this is all
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

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: 488
Reputation: 11,948

Post » Mon Apr 02, 2012 12:01 pm

This is nice !!! i looking for that example :)
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

Post » Mon Apr 02, 2012 2:46 pm

@JohnnySix its difficult to create such thing?
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

Next

Return to How do I....?

Who is online

Users browsing this forum: Norafaithrainbow, TRMG and 36 guests