Are scripts functioning yet?
#5
Here is a simple script, used in the "Raining parts" game[/code]:
Code:
while true do
p = create("Box");
p.Position = Vec2D(math.random(450, 550), 100)
p.Size = Vec2D(math.random(5, 20), math.random(5, 20))
p.Color = Color(math.random(0, 255), math.random(0, 255), math.random(0, 255))
p.Parent = game.World
s = create("Script")
s.Source = "sleep(5); while script.Parent.Transparency < 1 do script.Parent.Transparency = script.Parent.Transparency + 0.2; sleep(0.1); end; script.Parent:remove();"
s.Parent = p
sleep(1)
end
Reply


Messages In This Thread
Are scripts functioning yet? - by Intile - 10-11-2010, 06:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)