Einzelnen Beitrag anzeigen

Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#2

Re: Große Probleme mit einem Kleinen Spiel!

  Alt 27. Sep 2003, 15:03
Problem 2 gelöst!:
Delphi-Quellcode:
If Spieler1.Left < 0 then
    Spieler1.Left := Form1.ClientWidth - Spieler1.Width
  else if Spieler1.Top < 0 then
    Spieler1.Top := Form1.ClientHeight - Spieler1.Height
  else if Spieler1.Left > Form1.ClientWidth - Spieler1.Width then
    Spieler1.Left := 0
  else if Spieler1.Top > Form1.ClientHeight - Spieler1.Height then
    Spieler1.Top := 0;

Spider
  Mit Zitat antworten Zitat