This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
local delay = math.floor(Values["v_cloud_1_delay"].Int / 100) * getPos("cloud_1", -1181, 1280)Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.
See the Indie Bundle Try it for freeActiveAnimations["cloud_1"].CurrentPosition = {x=-500,y=0}
ActiveAnimations["cloud_1"]:to(2000, {CurrentPosition = {x = 980, y = 0}}, easeLinearIn, true, false)One more thing: Is there a way to make the clouds begin in the middle of the screen at first and only after that appear from the edge of the screen (from the second cycle on)?You need two tweens for that, and the real animation after the first one.
ActiveAnimations["cloud_1"].CurrentPosition = {x=300,y=0}
ActiveAnimations["cloud_1"]:to(1200, {CurrentPosition = {x = 980, y = 0}}, easeLinearIn)
setDelay(1200, function()
ActiveAnimations["cloud_1"].CurrentPosition = {x=-500,y=0}
ActiveAnimations["cloud_1"]:to(2000, {CurrentPosition = {x = 980, y = 0}}, easeLinearIn, true, false)
end)ActiveAnimations["cloud_1"].CurrentPosition = {x=300,y=0}
ActiveAnimations["cloud_1"]:to(70000, {CurrentPosition = {x = -824, y = 0}}, easeLinearIn)
setDelay(70000, function()
ActiveAnimations["cloud_1"].CurrentPosition = {x=1280,y=0}
ActiveAnimations["cloud_1"]:to(70000, {CurrentPosition = {x = -824, y = 0}}, easeLinearIn, true, false)
end)