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