Construct 2 - One Trick Everyday #17 - bounce off obstacles

1

Stats

1,875 visits, 2,584 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 20 Jul, 2018. Last updated 19 Feb, 2019

Hi Friends,

I am currently working on a top down zombie killing car racing game and suddenly I felt need of bouncing off obstacles on the road. After trying for sometime, I found this solution. Sharing it with you all through this video.

Trick:

1. Add bullet behavior to obstacles

2. Set speed 0 and bounce option to yes

3. now on collision set speed of obstacle to 450 (or any number)

4. set angle of motion to hitting object.angle in degrees

5. Reduce speed to object till it stops.

Have created video to show the effect and code.

Enjoy.

  • 0 Comments

Want to leave a comment? Login or Register an account!