Teleport actor? (with GIF)
mi1ez
Member, PRO Posts: 18
Well, I can't really explain it, but I want it so when the actor "enters" a certain Y position, it "comes out" from a lower Y position. So as the top of the actor enters portal 1, the top appears to come out of portal 2. I know this probably makes no sense to some, so here's a GIF to show what I mean http://makeagif.com/i/aULewc
Comments
Edit: And will the portals work in two directions?
Then I guess you'd need rules that say once a ball reaches a certain max or min Y threshold, move the ball back to the top/bottom again so that the balls remain the right distance from one another.
That's just off the top of my head, I'm on a work PC right now so I can't offer any demo file.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@mi1ez it doesn't matter if your background is solid as long as it's static, as the mask actor can just be a portion of the same background graphic. But it might not work for you, it all depends how you're building your game.
So, when ball hits portal 1, track velocity, angle etc.
Spawn ball2 at portal 2 and change attributes to those you've tracked above.
When ball passes portal 1, destroy.
Without masking it so it disappears behind the portal, im not sure how you will give the disappearing effect.
This is just a quick way that in theory would work, there maybe a nicer way