PfeilTasten + Rand des Bildschirmes = Error
Verfasst: 16.02.2005 16:14
Hiho,
ganz schnell:
warum zum Teufel geht das nicht:
Problem: Spieler stoppt nicht bei 640 bzw 480.
Ich hab schon folgendes probiert:
statt (z.B.
<= , =< nehmen (Geht nicht)
statt ganix das:
If Sy >= 480
Sy=480
Else
...
Bye
Slap
Ps: schnell,Schnell,SCHNELL ^^
ganz schnell:
warum zum Teufel geht das nicht:
Code: Alles auswählen
ExamineKeyboard()
;
If KeyboardPushed(#PB_KEY_Right)
If Sx >= 640
Else
Sx=Sx+5
EndIf
EndIf
;
If KeyboardPushed(#PB_KEY_Left)
If Sx <= 0
Else
Sx=Sx-5
EndIf
EndIf
;
If KeyboardPushed(#PB_KEY_Up)
If Sy <= 0
Else
Sy=Sy-5
EndIf
EndIf
;
If KeyboardPushed(#PB_KEY_Down)
If Sy >= 480
Else
Sy=Sy+5
EndIf
EndIfIch hab schon folgendes probiert:
statt (z.B.
statt ganix das:
If Sy >= 480
Sy=480
Else
...
Bye
Slap
Ps: schnell,Schnell,SCHNELL ^^