Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
setup running - no js

Robo
Guest
Quote
2019-06-16 12:51:38

There is a javascript available in the forum for run function but if you don't like editing javascript then it cans till be done via menu keys.

I admit its a pain but can be done:

To setup a run function first setup these variables before drawing anything:

up=0
down=0
left=0
right=0
Shift=0
move=0

Then every like 20ms or so do this:

if up is pressed down, set up = 1
if up is left up, set up = 0
(do this same method for each other variable above except for 'move')

Then another query every 50ms or so:
if up=0, if down=0, if left=0, if right=0, then move=0
for each alternative action set move=1 such that any movement key pressed will make 'move' equal to 1

Then create another query:
if move=1 and shift=1 then:
set variable "HASHplayer1.movementspeed = 0.045 (or whatever speed you want to run at)

'player1' is just the name of your player.

This is long winded but only this I found works without stuffing up somehow...and tried numerous ways..

Enjoy.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (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