Const UPS%=60
period=1000/UPS
time=MilliSecs()-period Repeat
Repeat
elapsed=MilliSecs()-time
Until elapsed
ticks=elapsed/period
tween#=Float(elapsed Mod period)/Float(period)
For k=1 To ticks
If k = ticks CaptureWorld
Time = Time + period
;Здесь логика
UpdateWorld
Next
;Тут я выполняю свой код, (пробовал и в логике и даже в 2д рендеренге))
If PickedEntity()=cube
cb=3
Else
cb=2
EndIf
EndIf
EntityBlend cube,cb
RenderWorld tween#
;2d
Flip 0
Forever