molunoluda Posted August 31, 2016 Share Posted August 31, 2016 Is there a way to create a gun shooting recoil? Like when the user shoots you, your character goes backwards due the bullets and if you shoot, you go backwards due the recoil? Link to comment Share on other sites More sharing options...
drhayes Posted August 31, 2016 Share Posted August 31, 2016 Have you tried adding a little velocity to your character at the moment they are hit or that they shoot? molunoluda 1 Link to comment Share on other sites More sharing options...
samme Posted August 31, 2016 Share Posted August 31, 2016 arcade.collide(bullet, char) will give a bit of bounce on contact. molunoluda 1 Link to comment Share on other sites More sharing options...
molunoluda Posted August 31, 2016 Author Share Posted August 31, 2016 2 hours ago, drhayes said: Have you tried adding a little velocity to your character at the moment they are hit or that they shoot? I'm new in game development, I will try your approach. Thank you. Link to comment Share on other sites More sharing options...
molunoluda Posted August 31, 2016 Author Share Posted August 31, 2016 1 hour ago, samme said: arcade.collide(bullet, char) will give a bit of bounce on contact. I just saw your answer. It helped, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts