Wind force implementation...

Get help using Construct 2

Post » Fri Jun 15, 2012 6:59 pm

Hi everybody,

My question is how can i do to implement wind-like-force? i'm making a tank game and in some level i want to implement a wind force so the player have to adjust is aiming taking into account the wind. The wind then will have to be a force that works both ways, accelerating or braking the bullet speed and, if it can be done, changing it's angle.

For this i have though of an invisible horizontal force that is present troughout the visible area, but it seems that i'm failing in that, if anyone have made something similar and feel like helping, it will be good to have some ideas...

Thanks!
B
28
S
5
G
4
Posts: 51
Reputation: 3,857

Post » Tue Jul 03, 2012 12:55 am

Assuming you're using the physics behavior then applying a force to the bullet every tick should do it.
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Tue Jul 03, 2012 1:51 pm

i prove it right away and it worked just fine! thanks! i was looking for a way to implement one force for the entire layout but your approach is the simplest, i will have to watch not to have too many bullets so does not slow down. Thanks again, see ya!
B
28
S
5
G
4
Posts: 51
Reputation: 3,857


Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, ManuelPerez, Yahoo [Bot] and 18 guests