Well my piece of code is about moving an arrow but when i do the images stays meaning, it draw multiples arrows, which it shouldnt, it should just move the arrow...
Heres my code can you fix it?
Heres my code can you fix it?
AppTitle "Practice" Graphics 800, 600, 16, 2 SetBuffer Backbuffer() Global menuarrow = 0 ;---------------------- ; Load Graphics ;---------------------- ; Char Sprites Global CharA = LoadImage("images/char1.png") Global CharB = LoadImage("images/char2.png") ; Battle Scene Global Status_Bar = LoadImage("images/bset_bottom.png") Global Fight_Menu = LoadImage("images/bset_bottomATT.png") Global Arrow = LoadImage("images/arrow.png") ;--------------------- ; Draw Script ;--------------------- While Not KeyHit (1) DrawImage Status_Bar,0,470 DrawImage Fight_Menu,20,440 If menuarrow = 0 Then Ax = 0 Ay = 10 EndIf If menuarrow = 1 Then Ax = 0 Ay = 30 EndIf If menuarrow = 2 Then Ax = 0 Ay = 50 EndIf If menuarrow = 3 Then Ax = 0 Ay = 70 EndIf If menuarrow = 4 Then menuarrow = 0 EndIf If KeyDown(208) Then ;press down menuarrow = menuarrow + 1 EndIf DrawImage Arrow,Ax,Ay Flip Wend