Blockland Forums > Help
HOW DO YOU MAKE IT SO WHEN YOU TOUCH A BLOCK IT TALEPORTS YOU TO ANOTHER BLOCK?
yo yo:
can you please help me i want to make it so when you touch a block it teleports you to another block?
dtnc21:
Whoa whoa whoa!!! You're supposed to post that on the help section!
Regulith:
Please stop making you titles in all caps. This would also have gone in the Help section.
To teleport, you must download the Event_SetPlayerTransform add-on.
Then, make two bricks. Name one A and the other B.
For A:
--- Code: ---[ 100] Onplayertouch > NAMED BRICK B > SetPlayerTransform > [direction]
[ 0] Onplayertouch > Self > Setcolliding > [ ]
[ 5000] Onplayertouch > Self > Setcolliding > [#]
[ 0] Onplayertouch > NAMED BRICK B > Setcolliding > [ ]
[ 5000] Onplayertouch > NAMED BRICK B > Setcolliding > [#]
--- End code ---
For B:
--- Code: ---[ 100] Onplayertouch > NAMED BRICK A > SetPlayerTransform > [direction]
[ 0] Onplayertouch > Self > Setcolliding > [ ]
[ 5000] Onplayertouch > Self > Setcolliding > [#]
[ 0] Onplayertouch > NAMED BRICK A > Setcolliding > [ ]
[ 5000] Onplayertouch > NAMED BRICK A > Setcolliding > [#]
--- End code ---
Here's what you should have: When you step on A, you will be teleported to B. If you stay on B for 5 seconds, you will teleport back to A.
(If I made any errors, please correct them)
yo yo:
im so sorry you guys i am new i didt know htere was a help section
Regulith:
--- Quote from: yo yo on July 02, 2009, 10:58:15 PM ---im so sorry you guys i am new i didt know htere was a help section
--- End quote ---
For future reference:
Help
"Need help with installing or playing the game? Post here."