[solved] 8 direction behavior and weapon recoil ?

Get help using Construct 2

Post » Mon Feb 02, 2015 1:13 pm

Hi.

What is the simplest way to create a weapon recoil on a 8 direction behavior ?
I'm thinking about it in an "additive" way. Like if the player is moving at speed 200 and shoots in the same direction at a power 100, its speed will be decreased to 100 and will progressively increase back to 100. If the player is moving at speed 70, then its speed would decrease to -30.
I think it has something to do with "dt" ?
I'd also like to do the same on a bullet behavior :)
Last edited by Coin-coin le Canapin on Wed Feb 04, 2015 6:22 pm, edited 1 time in total.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Wed Feb 04, 2015 6:22 pm

Thanks to another thread I managed to do that.
You can try it here : http://canapin.com/construct/tests/knockback/
You do not have the required permissions to view the files attached to this post.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 37 guests