Autor Beitrag
the.fellowship
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: So 12.02.06 13:41 
Wie macht man eigentlich einen rand, damit die Spielfigur nicht aus dem Fenster wandern kann? Ich hätte mir das so gedacht:
If Image1.Top > 500 Then Image1.Top = 500; (aber ich kann mit meiner Spielfigur trotzdem noch darüber laufen. Wie würdet ihr das machen??

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 12.02.06 13:51 
ausblenden Delphi-Quelltext
1:
2:
if Image1.Top > 500 then
  Image1.Top := 500;
WolfB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39

WinXP Professional
Delphi 7
BeitragVerfasst: So 12.02.06 13:59 
worin fragste denn ab, ob die position größer als 500 ist?
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 12.02.06 14:02 
ausblenden Delphi-Quelltext
1:
2:
if Image1.Top > 500 then //Wenn Position größer als 500,
  Image1.Top := 500; //dann auf 500 setzen.

(ungetestet) :gruebel: