Create Teleport
JoshKahane
Member Posts: 470
Hi
Either I have absolutely no brain or I am making it far to complicated. I am trying to make a teleport so that when my character actor collides with teleport actor 1 it gets teleported to teleport actor 2 and the same in reverse. Any help much appreciated, thanks.
Either I have absolutely no brain or I am making it far to complicated. I am trying to make a teleport so that when my character actor collides with teleport actor 1 it gets teleported to teleport actor 2 and the same in reverse. Any help much appreciated, thanks.
Comments
--Change Attribute self.Position.X then give it the X position of Actor 2, manually or via game attributes.
--Change Attribute self.Position.Y ...Same thing but for the Y position
--Change Attribute self.IJustTeleported = true
Do the vice versa for actor 2.
One more rule:
If Event Collides with Actor 1 OR Event Collides with Actor 2 OR Attribute self.IJustTeleported is false
--(Do nothing)
Otherwise:
--Timer After .4 seconds
----Change Attribute self.IJustTeleported = false
On my level, the teleport gets you from side of a wall, to the other side. Only since copying your example (exactly im sure of it, as it works fine and just as I want and as it does in your example), when I collide with the wall from the left (the side i start on) it also acts as a teleport, but from the right it results in gameover as normal. Very odd, huh? Im almost 100% positive that there are not links to the wall giving it teleporting abilities.
Shouldn't think you will be able to figure that one out, hehe.