Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Power-Up implementation

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.


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




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:


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