Why doesn't it go left or right?

Blitz3D Forums/Blitz3D Beginners Area/Why doesn't it go left or right?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If KeyDown(203) Then
 rec_y = rec_x - 5
EndIf
; Press Right
If KeyDown(205) Then
 rec_y = rec_x + 5
EndIf

should be:
If KeyDown(203) Then
 rec_x = rec_x - 5
EndIf
; Press Right
If KeyDown(205) Then
 rec_x = rec_x + 5
EndIf