Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
anyone know do i make when i shoot it has cooldown?

frizqueque
Registered User
Quote
2021-08-08 22:37:45

i need to make that when i shoot it has a cooldown like 1 or 2
seconds

if anyone know pls tell me :(


Aiming bullets
Guest
Quote
2021-08-11 18:10:00

Use variables with do something later action


veganpete
Registered User
Quote
2021-08-17 15:04:23

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact