Teleporting an actor
Nastynate
Member, PRO Posts: 6
If anyone can help me with a step-by-step analysis on how to make actors appear in certain locations by colliding with other actors will be a great help to me. I try using a rule that includes the "move to" function but it does not work quite like I need it to.
Comments
If actor A overlaps or collides with actor B
Change attribute self.position.x to (newlocation)
Change attribute self.position.y to (newlocation)
I'm sure this is overkill since @icebox answered your question already but some time ago a did an extensive tutorial for the Tuts+ network that included a teleportation platform that works using the same method if you want to check it out.
http://gamedevelopment.tutsplus.com/series/danger-droids-create-a-platformer-in-gamesalad--gamedev-13301
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page