Need help.
#1
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.
Reply
#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
#3
Thanks even tho i have no clue how to edit that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)