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.

Could someone explain to me why this ain't working, it doesn't go to right nor left, I dont get why?

Const ScreenX = 800
Const ScreenY = 600

Graphics ScreenX,ScreenY,32

Global rec_x = 0
Global rec_y = 0

;Include "includes/types.bb"

While Not KeyHit(1)
Cls

Rect rec_x, rec_y, 100, 100, 0

; Press UP
If KeyDown(200) Then
rec_y = rec_y - 5
EndIf
; Press Down
If KeyDown(208) Then
rec_y = rec_y + 5
EndIf
; Press LEFT
If KeyDown(203) Then
rec_y = rec_x - 5
EndIf
; Press Right
If KeyDown(205) Then
rec_y = rec_x + 5
EndIf

Flip

Wend