≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
anyone know do i make when i shoot it has cooldown?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: I used cooldown in my game ("P" is fire minigun).... [url] https://drive.google.com/file/d/1zgIZJ1_VHEc2f1z8f3jYHtobwRaPWTO5/view?usp=sharing [/url] As mentioned,by [b] Aiming Bullets [/b] 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)... [quote] 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 [/quote] Gun heats up and cools down, I also added sounds for when it's overheated.[/quote]
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