Hallo Community,
Vielleicht könnt ihr mir weiter helfen?
Wenn die Rectangle eine Animation ausgeführt hat soll die Rectangle sobald die Animation fertig ist danach noch eine Animation
ausführen aber ich weiß nicht wie??
Lua
local step = 0.03
local x,y = guiGetScreenSize()
local sx,sy = 736, 425
local px,py = 1440, 900
local progress = 0
function renderWindow()
progress = progress + step
if progress > 1 then
progress = 1
end
px,py = interpolateBetween(360, 915, 0, 360, 215, 0, progress, "InOutQuad")
dxDrawRectangle(px,py,sx,sy,tocolor(0,0,0,165))
end
addEventHandler("onClientRender",getRootElement(),renderWindow)
Alles anzeigen
Danke im Vorraus