2DWorlds Forums
Help! It wont work! - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Help! It wont work! (/showthread.php?tid=1237)



Help! It wont work! - InternetGuy - 01-30-2011

while true do
wait(1)
e = create("Explosion")
e.Parent = game.World
e.Position = game.World.CircleMan.Position
end



RE: Help! It wont work! - Jacob__mybb_import1 - 01-30-2011

Use sleep() instead of wait(), also you have to set the explosion's position before you add it to the world.

while true do sleep(1) e = create("Explosion") e.Position = game.World.CircleMan.Position e.Parent = game.World end