Help me, about 2D x,y

Blitz3D Forums/Blitz3D Beginners Area/Help me, about 2D x,y

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.

Try this,the block you see is the main man,there is a block
down below the screen.Press down to walk to it.



;I tryed something which is Not working, what am i doing wrong:

; Graphic Mode
Graphics 800,600,32

; Global Variables

Global x=40,x1=40,y=40,y2=640
While Not KeyDown(1)

Cls ; Always clear screen first

Rect x,y,20,20,1 ; Draw the box in the current x,y location
Rect x1,y2,20,20,1 ; Draw the box in the current x,y location

If KeyHit(208) Then

y2=y2-40
EndIf

Flip ; Flip it into view

Wend


Is this what ur asking?