
-----------------------------------
caldrium
Tue Jan 17, 2006 10:18 am

how do i move a guy in turing?
-----------------------------------
im taking a turing class and we are doing an assingment, and im making a game but i dont know how to move or collide

how would i move up(on up arrow command),down,left,right and how do i do collissions (example if you run into something, this happens)

-----------------------------------
Albrecd
Tue Jan 17, 2006 10:39 am


-----------------------------------
var input : array char of boolean
Input.KeyDown (input)
if input (KEY_UP_ARROW) then
CharacterY += 3 %Or whatever number depending on how far you want the character to move.

Put this in a loop and do the same for right, left, and down (you can use the same variable for each)

-----------------------------------
Delos
Tue Jan 17, 2006 10:41 am


-----------------------------------
You start by reading the tutorials on Movement (specifically Input.KeyDown()) and collision detection.  Check the Walkthrough for a complete list.

Then, you do some pseudo- and real- coding.  Then, if you're still stuck, you come back here, post your code (using inspiration if you need.
