06-10-2011, 03:18 PM
(This post was last modified: 06-10-2011, 03:19 PM by Jacob__mybb_import1.)
(06-10-2011, 04:03 AM)Mimotefu Wrote: 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.
[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]