Forum: Programmieren allgemein
by alfold,
9. Apr 2011
Kann es sein Das Du da zweimal den key abfragst wenn er gedrückt ist?
....
if FDistance <= 0 then
begin
if ((RRichtung = Links) and (GetAsyncKeyState(65) <> 0) or // A //<----
(RRichtung = Rechts) and (GetAsyncKeyState(68)<> 0 ) or // D
(RRichtung = Hoch) and (GetAsyncKeyState(87)<> 0) or // W
(RRichtung = Runter) and (GetAsyncKeyState(83)<> 0)) then // S
Forum: Programmieren allgemein
by alfold,
9. Apr 2011
Und wo setzt Du Spieler.MapVerlassen?
Forum: Programmieren allgemein
by alfold,
9. Apr 2011
Uberprüfe in Deiner Key abfrage, vor der Ausführung des keys, ob das Ende der Position erreicht ist!
Wenn ja, dann neues Bild laden Position setzten und key ausführen!
Gruss alfold