Objekt soll nur 1 Schritt alle 2 sekunden machen,
Übersicht

![]() |
MikeDeeBetreff: Objekt soll nur 1 Schritt alle 2 sekunden machen, |
![]() Antworten mit Zitat ![]() |
---|---|---|
aber bis jetzt bekomme ich nur hin das es 2 sekunden lang in eine Richtung geht -.-
Code: [AUSKLAPPEN] Graphics 800,600,0,2
SetBuffer BackBuffer() SeedRnd MilliSecs() Local Timer=CreateTimer(60) Local PlotX = 400 Local PlotY = 300 Local PlotTimer Local PlotRichtung Repeat Cls If MilliSecs()-Plottimer>2000 Then Plotrichtung=Rand(0,3) Plottimer=MilliSecs() EndIf Select PlotRichtung Case 0 PlotY=PlotY+1 Case 1 PlotY=PlotY-1 Case 2 PlotX=PlotX+1 Case 3 PlotX=PlotX-1 End Select PlotX=(PlotX+800) Mod 800 PlotY=(PlotY+600) Mod 600 Color 255,255,255 Plot PlotX,PlotY WaitTimer(Timer) Flip 0 Until KeyHit(1) End |
||
Nicht wenige benutzen die Anonymität des Internets um berühmt zu werden. |
![]() |
d-bug |
![]() Antworten mit Zitat ![]() |
---|---|---|
BlitzBasic: [AUSKLAPPEN] Repeat Bitte sehr |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group