Anybody have a World Teleporter? - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: 2DWorlds Discussion (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=10) +--- Thread: Anybody have a World Teleporter? (/showthread.php?tid=5562) Pages:
1
2
|
RE: Anybody have a World Teleporter? - Glome - 06-09-2011 (06-09-2011, 08:14 PM)Brassrhino Wrote:I'll try that lol(06-09-2011, 08:11 PM)Glome Wrote:(06-09-2011, 08:07 PM)Brassrhino Wrote:(06-09-2011, 08:03 PM)Glome Wrote: Hmm... [lua]function OnCollided(hit) if hit.Parent.Type == "Character" then hit.Parent = game:getWorld("test").World end end link(script.Parent.Collided, OnCollided)[/lua] That's what I've made. Doesn't move the camera though... RE: Anybody have a World Teleporter? - Jacob__mybb_import1 - 06-09-2011 [lua] function OnCollided(hit) if hit.Parent.Type == "Character" then hit.Parent.Parent = game:getWorld("test").World hit.Parent.Position = Vec2D(newX, newY) end end link(script.Parent.Collided, OnCollided) [/lua] RE: Anybody have a World Teleporter? - Glome - 06-09-2011 (06-09-2011, 09:24 PM)Jacob_ Wrote: [lua] Tahtz mai code j00 edited trolololo Thanks for fixing it though :> RE: Anybody have a World Teleporter? - Glome - 06-09-2011 (06-09-2011, 09:24 PM)Jacob_ Wrote: [lua] [lua] function OnCollided(hit) if hit.Parent.Type == "Character" then hit.Parent.Parent = game:getWorld("test").World hit.Parent.Body.Position = Vec2D(newX, newY) end end link(script.Parent.Collided, OnCollided) [/lua] You forgot the body hehehe :3 RE: Anybody have a World Teleporter? - King_Of_Forums - 06-09-2011 (06-09-2011, 07:59 PM)Qwertygiy Wrote: Not that I'm aware of, might make one, might not, because it's gonna be needed at some point.I need one too. You're gonna help lots of people. RE: Anybody have a World Teleporter? - Glome - 06-09-2011 (06-09-2011, 11:52 PM)King_Of_Forums Wrote:(06-09-2011, 07:59 PM)Qwertygiy Wrote: Not that I'm aware of, might make one, might not, because it's gonna be needed at some point.I need one too. You're gonna help lots of people. U can use mine :3 |