Help with portal game

@richard
As you saw earlier I used your code to make my own portal game. However its hard-coded to only let the player through portals, could you help me allow other sprites too? Like maybe make the "do portal update work for a specified sprite. I was trying to do that but your code is advanced for me. Here is the link to the game–>https://arcade.makecode.com/S67936-60919-61588-07506 Thanks!

5 Likes

hmmm, that would be pretty difficult to do with the current code. blocks code isn’t exactly the easiest to refactor…

i might be able to make an extension for this in TypeScript. let me think about it a bit.

2 Likes

Ok, thanks!

How would I go about making an extension for this?

@Bifrosty yeah, i was looking through the code and determined it would be pretty difficult to do in its current state. it’s super hard-coded to just handle the player. if you were to make an extension for it, you’d likely have to rewrite it from scratch in TypeScript