Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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. |
|