≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Change built-in behaviours?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b][/b] wrote: @DouweDabbe , the @Robo's code is specific to the task, in order to make it work for you or for your game, you might need to modify it as per your needs, if it is throwing errors or is not working for you then you can modify it as per your needs. [code]if (this.leftKeyDown || this.rightKeyDown || this.upKeyDown || this.downKeyDown) { etc etc.[/code] this line should not give any bugs or any errors as this is doing nothing then setting the CopperCube variable. [code]this.rightKeyDown = down;[/code] the above code is correct as well, "down" here is the condition of the key press and won't always stays true. It will be true if the key is pressed and it will be false if key is released. so when key is released [code]down = false[/code] when key is pressed [code] down = true[/code] There is nothing wrong with there. You might need to check if you have modified or if there are some other behaviors or extension conflicting with you game.[/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