Need help.
#2
(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]
Reply


Messages In This Thread
Need help. - by Mimotefu - 06-10-2011, 04:03 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)