# Portal Count 2 Three

**URL:** <https://forum.makecode.com/t/portal-count-2-three/33015>\
**Category:** Show & Tell\
**Tags:** game, art, platformer, puzzle\
**Created:** [January 7, 2025, 6:33pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015 "2025-01-07T18:33:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [January 7, 2025, 6:33pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/1 "2025-01-07T18:33:47Z")

</div>

Portal Count 2 Three

This is a puzzle game inspired by valve’s portal.

> **[Portal Count To 3](https://arcade.makecode.com/S36360-13181-88624-94317)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

As is a sequel game and its highly recommended that you play the first game in the series.

First Game: [https://arcade.makecode.com/S90473-46771-28094-81404](https://arcade.makecode.com/S90473-46771-28094-81404)

Controls  
WASD/arrow keys -Move and jump  
B - Skip text  
The rest of the controls are explained in game.

Prequal (optional): [https://arcade.makecode.com/S50460-22710-83684-89933](https://arcade.makecode.com/S50460-22710-83684-89933)

I put a lot of work into this series and I hope you play them. All together there is 60 distinct levels and three boss fights. If you have an hour and half on your hands play this!

---

<div class="post-metadata">

**Author:** ![Henry\_J](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@Henry\_J](https://forum.makecode.com/u/Henry_J)\
**Post date:** [January 20, 2025, 6:41pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/2 "2025-01-20T18:41:47Z")

</div>

You did so well with this! can you tell me how when you walk through the portal, the sprite doesn’t instantly teleport?

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [January 21, 2025, 6:57pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/3 "2025-01-21T18:57:57Z")

</div>

Its fairly complex but I’ll try to explain it the best I can. I constantly check if the player is overlapping within the portal and if they are I have a distance within portal variable. This variable can change based on how close they are to leaving either side of the portal. If variable’s value is closer to zero than 1 then I know the player is in the portal. And I use a render to screen loop from the sprite utilities extension to render a fake player on the other side of the portal with help from the distance within portal variable. (that’s why the play is only animated on one side of the portal.) Finally I check which direction the portals are facing and from here I can rotate the fake player to make it look authentic. I also use the portal direction to reroute the player’s velocity. All my code for the portals was greatly inspired by @richard. Here is their demo →

> **[portal-demo](https://arcade.makecode.com/S36103-68701-57573-37120)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Sprite utility extension: [https://arcade.makecode.com/S36103-68701-57573-37120](https://arcade.makecode.com/S36103-68701-57573-37120)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 21, 2025, 9:03pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/4 "2025-01-21T21:03:13Z")

</div>

@Bifrosty you continue to kill it with these games! so glad my portal demo was of use to someone

---

<div class="post-metadata">

**Author:** ![ZeroFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zerofall/32/34898_2.png) [@ZeroFall](https://forum.makecode.com/u/ZeroFall)\
**Post date:** [February 26, 2025, 5:50pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/5 "2025-02-26T17:50:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/0/b053ad5ecb8541d27f3a2bd3c292724b4edc8f27.png)  
Sorry just bringing this up but you can just skip the puzzle if you jump through the black holes we have to do it in the end anyways.

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [February 26, 2025, 6:52pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/6 "2025-02-26T18:52:49Z")

</div>

I’m hilariously aware of that skip 😂. My friend found it the day I released it and I still haven’t updated the game. I will eventually but if I was to update the link due to how the settings extension works it would erase all the level progress of players. I’ll probably fix it in a few days so be warned.

---

<div class="post-metadata">

**Author:** ![ZeroFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/zerofall/32/34898_2.png) [@ZeroFall](https://forum.makecode.com/u/ZeroFall)\
**Post date:** [February 26, 2025, 9:11pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/7 "2025-02-26T21:11:54Z")

</div>

Also, you can skip through into green portal if you have a portal above and below the green portal, and move towards the green portal you clip into the portal before the gree portal disapates

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [May 14, 2026, 5:31pm UTC](https://forum.makecode.com/t/portal-count-2-three/33015/8 "2026-05-14T17:31:59Z")

</div>

Play the next installment ion the series!

> [@Suvivor's Bias (Portal)](https://forum.makecode.com/t/suvivors-bias-portal/43985):
>
> You have conquered the non-euclidean physics of the my previous games, now it is time to cross the final frontier–TIME MANIPULATION. Take part in this 11 level demo inspired by the puzzles of portal reloaded. This time around, completion of previous games is not required, as existing mechanics are re-taught. Have fun! Controls are explained in game. MOUSE REQUIRED play_button Why Demo?
