Can someone send me a code for a block / shape that you cannot pass throught but the movement of the player needs to be like this :
While 1 = 1
Program.Delay(10)
playerBehaviour()
EndWhile
Sub playerBehaviour
If key[input_upKey] Then
player_y = player_y - player_speed
Shapes.Move(gamePlayer,player_x,player_y)
EndIf
If key[input_downKey] Then
player_y = player_y + player_speed
Shapes.Move(gamePlayer,player_x,player_y)
EndIf
If key[input_leftkey] And canMoveLeft Then
player_x = player_x - player_speed
Shapes.Move(gamePlayer,player_x,player_y)
EndIf
If key[input_rightkey] And canMoveRight Then
player_x = player_x + player_speed
Shapes.Move(gamePlayer,player_x,player_y)
EndIf
EndSub
Sub keyDown
k = GraphicsWindow.LastKey
key[k] = "True"
EndSub
Sub keyUp
k = GraphicsWindow.LastKey
key[k] = "False"
EndSub