ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Feature requests and bug reports
forum topic indicator If a key is pressed again behaviour
person icon
dynamogames
Registered User
Quote
2023-10-04 17:04:21

I think there is should be a behaviour in CopperCube which handles "if a key is pressed again", an action is performed. Currently, only when a key is pressed down once is handled. There might be a scenario where users would want to perform a particular action if a key is pressed again.

person icon
andgameplay
Registered User
Quote
2023-10-04 22:58:06

It's a good idea, but you can do this using variables in a simple way.

If X key is pressed, if a variable =0 so set a variable = 1 and do a action;

If X key is pressed again, if a variable = 1 so set a variable = 0 and do a action.

person icon
dynamogames
Registered User
Quote
2023-10-05 23:31:01

This is a good idea, but it will be much more effective to have a built in behaviour for it, it might be a bit strenuous if a person wants to perform "on key pressed again" on multiple keys in a game.


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 |