Teleporting Flower

Post and download premade scripts for use in your own levels.

Moderators: Main Administator, Global Moderator, Moderator

Post Reply
User avatar
Leg-Spinner 77
Administrator
Administrator
Posts: 702
Joined: Thu Sep 15, 2011 12:31 pm
Location: Perth, Australia

Teleporting Flower

Post by Leg-Spinner 77 » Wed Dec 19, 2012 2:31 pm

Hey guys, I am making a rather difficult and complex level. I have a trainer in my script but I need to move the flower due to the restrictions on them. Can anyone please tell me how to do this?
"Soli Deo honor et gloria."
Member of Team Grimmie \|/


Other nicks: Standecni, Vandette (and all other Vandette names), MotR, Science & Progress, Man on the Run.

User avatar
Lord Kacper/KACPU
Xmoto-Player Advanced
Posts: 392
Joined: Sat Dec 24, 2011 11:30 pm
Location: Poland

Re: Teleporting Flower

Post by Lord Kacper/KACPU » Wed Dec 19, 2012 3:58 pm

Hey.

ALL* Script will be something like that

--TRAINER based on Cigam's trainer that he's sent me--

function OnLoad()

Game.SetKeyHook("1", "teleport1")
return true

end

function teleport1()

x, y = Game.GetEntityPos("teleport")
Game.SetEntityPos("finish", 5000, 5000)
Game.SetPlayerPosition(x, y, 0)

end

*Ofc, you must write your own id's of entities and function names.

Btw guys, it is possible to do that by just 'KillEntity' function?
Last edited by Lord Kacper/KACPU on Thu Dec 20, 2012 6:01 am, edited 1 time in total.

User avatar
Leg-Spinner 77
Administrator
Administrator
Posts: 702
Joined: Thu Sep 15, 2011 12:31 pm
Location: Perth, Australia

Re: Teleporting Flower

Post by Leg-Spinner 77 » Thu Dec 20, 2012 12:54 am

Thx mate, will try the script as soon as possible. I haven't thought of the KillEntity script, perhaps that might work. :D
"Soli Deo honor et gloria."
Member of Team Grimmie \|/


Other nicks: Standecni, Vandette (and all other Vandette names), MotR, Science & Progress, Man on the Run.

User avatar
Leg-Spinner 77
Administrator
Administrator
Posts: 702
Joined: Thu Sep 15, 2011 12:31 pm
Location: Perth, Australia

Re: Teleporting Flower

Post by Leg-Spinner 77 » Thu Dec 20, 2012 5:33 am

KAC, what is the 'teleport' in the script line below supposed to be??? Is it meant to be the name of the teleport in your script?

x, y = Game.GetEntityPos("teleport")
"Soli Deo honor et gloria."
Member of Team Grimmie \|/


Other nicks: Standecni, Vandette (and all other Vandette names), MotR, Science & Progress, Man on the Run.

User avatar
Lord Kacper/KACPU
Xmoto-Player Advanced
Posts: 392
Joined: Sat Dec 24, 2011 11:30 pm
Location: Poland

Re: Teleporting Flower

Post by Lord Kacper/KACPU » Thu Dec 20, 2012 8:27 am

[quote=""Leg-Spinner 77""]KAC, what is the 'teleport' in the script line below supposed to be??? Is it meant to be the name of the teleport in your script?

x, y = Game.GetEntityPos("teleport") [/quote]
Delete the line between bold text, i mean union them.

Btw, it is teleport entity id. It's all trainer script for 1 trainer.

Post Reply

Return to “Downloadable Level Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest