Need help. - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: Need help. (/showthread.php?tid=5590) |
Need help. - Mimotefu - 06-10-2011 while true do for i = 1,100 do sleep(1) game.Camera.Position = (50.0,55.0) end end How do i make it add 1 to 50.0 every second. RE: Need help. - Jacob__mybb_import1 - 06-10-2011 (06-10-2011, 04:03 AM)Mimotefu Wrote: while true do [lua] game.Camera.Position = Vec2D(50.0,55.0) while true do for i = 1,100 do sleep(1) game.Camera.Position = game.Camera.Position:add(Vec2D(1, 0)) end end [/lua] RE: Need help. - Mimotefu - 06-10-2011 Thanks even tho i have no clue how to edit that. |