I'm just starting my adventure with programming and with Hollywood.
Have been reading included help (for few hours) and only found that:
Code: Select all
While quit = False
dir = p_QueryInput()
If dir = "Left" Then p_MoveSpriteLeft()
If dir = "Right" Then p_MoveSpriteRight()
....
Wend
What I found so far are these isKeyDown and waitKeyDown.
Do I have to built IF statement like this:
Code: Select all
down= IsKeyDown("DOWN")
up = IsKeyDown("UP")
left = IsKeyDown("LEFT")
right = IsKeyDown("RIGHT")
if down = 1 then return({0,1})
if up = 1 then return({0,-1})
if left= 1 then return({-1,0})
if right= 1 then return({1,0})
Thanks