ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Power-Up implementation
person icon
dynamogames
Registered User
Quote
2023-10-04 17:20:04

I'm trying to implement a Power-Up system where the player presses a key to use their Power-Up for instance "E key" , I'm having an issue where I only want the Power-Up to be only used once so after the player presses E key once, they can't use the Power-Up again. As CopperCube does not have a "If key is pressed again" behaviour, I don't know how to implement this.

person icon
hadoken
Guest
Quote
2023-10-04 18:48:35

@dynamogames,

CopperCube Input Helper extension

can help by letting you exactly define how often or in which case you want some input do something you want:

https://hadoken-records.itch.io/...

please check its description carefully, report here in case you might need any further assistance

emoji icon_blink

person icon
count2rfeit
Registered User
Quote
2023-10-04 20:28:30

I would just create a hidden scene node and attach the action to that - then when the key is pressed the first time, simply delete the node (do something later) so it won't be activated again...

you can also just hide it, so if you want to use it again later on, you just need to unhide it to use it and then hide it again to stop using it.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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