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

**URL:** <https://forum.makecode.com/t/how-to-make-different-sprites-connected-sort-of-i-will-explain-my-question-better-in-the-post/30051>\
**Category:** Help\
**Created:** [August 10, 2024, 9:02pm UTC](https://forum.makecode.com/t/how-to-make-different-sprites-connected-sort-of-i-will-explain-my-question-better-in-the-post/30051 "2024-08-10T21:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby5020](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobby5020/32/16554_2.png) [@Bobby5020](https://forum.makecode.com/u/Bobby5020)\
**Post date:** [August 10, 2024, 9:02pm UTC](https://forum.makecode.com/t/how-to-make-different-sprites-connected-sort-of-i-will-explain-my-question-better-in-the-post/30051/1 "2024-08-10T21:02:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 12, 2024, 1:57am UTC](https://forum.makecode.com/t/how-to-make-different-sprites-connected-sort-of-i-will-explain-my-question-better-in-the-post/30051/2 "2024-08-12T01:57:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)\
**Post date:** [August 12, 2024, 1:58am UTC](https://forum.makecode.com/t/how-to-make-different-sprites-connected-sort-of-i-will-explain-my-question-better-in-the-post/30051/3 "2024-08-12T01:58:16Z")

</div>

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.
