Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
i need to make that when i shoot it has a cooldown like 1 or 2 seconds if anyone know pls tell me :( |
||||
|
Use variables with do something later action |
||||
|
I used cooldown in my game ("P" is fire minigun).... https://drive.google.com/file/d/... As mentioned,by Aiming Bullets above: use a variable "cooldown" (or whatever you want) and an "If" statement - so it only shoots if "cooldown" is not overheated. In my game, I used this (in the scene graph explorer, using actions)... When fire key is pressed: If variable "cooldown" <100, Shoot, Variable "cooldown" +1 When fire key is released: If variable "cooldown" >0, Variable "cooldown" -1 Gun heats up and cools down, I also added sounds for when it's overheated. |
|