Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm probably doing this completely wrong, but I'd like to know if there's any way to shoot bullets from an object at a constant rate. The way I have it now is by triggering from the space bar, every X ms, shoot object. However, this seems to shoot one bullet, then a pause, then it continuously shoots. Is there a way around that so it doesn't shoot and pause? |
||||
|
Simple! Just press the trigger continuously without releasing it! Ok I am just kidding! Here's how: Just add the behavior when a key is pressed change the variable "TriggerPress" to 1 and when released do it to 0. Now every <FireRate in ms> (e.g 500 ms) milliseconds if "TriggerPress" is 1, shoot bullet! CCB: https://drive.google.com/open?id... |
||||
|
Thank you, behroz-khan I'm not very good with variables, so this is a great thing to start learning with. Thanks again dude |
|