Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function Kisten_Gravity ()
  2.     For Kiste.KistenTyp = Each KistenTyp
  3.         For Kiste2.KistenTyp = Each KistenTyp
  4.             If Kiste <> Kiste2
  5.                 If Kiste\X > Kiste2\X-32 And Kiste\X < Kiste2\X+32 Then;prüfen ob X Koordinate stimmt
  6.                     If Kiste2\Y > Kiste\Y And Kiste2\Y < Kiste\Y+32 Then
  7.                         Kiste\Gravity = False
  8.                         If Kiste\Y+32 > Kiste2\Y Then Kiste\Y = Kiste2\Y-32
  9.                     End If
  10.                 End If
  11.             End If
  12.         Next
  13.        
  14.         If Kiste\Gravity = True And Kiste\Y < (550-32)
  15.             Kiste\Y = Kiste\Y *Kiste\Gravity_Speed
  16.             If Kiste\Y > (550-32)
  17.                 Kiste\Y = (550-32)
  18.             End If
  19.         End If
  20.     Next
  21. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement