How to make different sprites connected, sort of (I will explain my question better in the post)

So, I’m making a sort of platformer game, and in the game, there are portals which transport the player to a different part of the tilemap. At first, I had them as tiles, and I could use that easily. I have recently changed them to sprites instead (so I could animate them) and I want to know the simplest, quickest way to make it so that the purple portal connects with the other purple portal, and the green portal connects with the other green portal, and so on. I know I could do this by creating lots of new spritekinds and variables, but is there a quicker way?

I will post an example game with my problem in a minute.

3 Likes

Use doors, they’re in one of the sprite util extensions I think

okay, so when a player crosses paths with the purple portal(when mySprite touches BlankSprite)
then set mySprite y to BlankSprite2 - 10(so it doesn’t transport them forever) and x to BlankSprite2. you can edit this how you see fit, but its the best way to do this as far as I know.