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

1
  • 2 favourites

Stats

958 visits, 1,212 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.

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.

  • 1 Comments

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