Fire Rate for a gun!

2

Stats

2,913 visits, 4,091 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 15 Jan, 2017. Last updated 19 Feb, 2019

Sometimes, when you create a character who has a gun or throws something, you use "when key is down - Shoot" or "Mouse button is down - Shoot", but when you try it, you see that the bullet spawn infinitely in your gun and you just want a bullet every X seconds. How do we do this?

First you have to create an event that says: "When key is down" and then add a Sub event that says: "Every X seconds - (player) spawn object on (layer) (image point).

So that's all, now you can create a more realistic gun to your character.

  • 0 Comments

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