10-14-2010, 11:22 PM
(This post was last modified: 10-14-2010, 11:22 PM by Jacob__mybb_import1.)
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