In my Portal Engine, when you shoot a portal to where the character touches black, he gets stuck. Can it be fixed?
Offline
firedrake969_test wrote:
In my Portal Engine, when you shoot a portal to where the character touches black, he gets stuck. Can it be fixed?
Hmmm... I'm not getting this glitch. Could you be a bit more specific, or even post a screen shot?
Offline
Be underneath the triangle and shoot a portal into it. Then, step into a portal of a different color. Voila.
Offline
Firedrake969 wrote:
Be underneath the triangle and shoot a portal into it. Then, step into a portal of a different color. Voila.
Ahhh… okay. I'll look into it soon.
Offline
Okay, although I haven't looked at your code, there should be a way. One method that I'm thinking of right now would be to have portals point away from the wall that they've gotten atached to. Now, whenever you go through a portal and get stuck in a wall, you could just have your character move a few steps in the direction of the portal until you aren't stuck, or you could have your character automatically take a few steps each time it goes through a portal
I hope that this helps!
Offline
How would I have the portals point away from the black wall/sprite?
Offline
Firedrake969 wrote:
How would I have the portals point away from the black wall/sprite?
Well this happens to be an interesting coincedence; I was thinking about this same question awhile ago. So what you'll need to do is create a costume of your portal with a black line in it's front. Then, whenever you need it to face away from the wall, you just have it switch to the new costume and turn 90 degrees till the black line isn't touching the wall (or in other words, the color black and the wall's color). Another way you could do this is having 3 (or 4) colored lines around your portal instead of one. This way, instead of rotating 1~4 times, you could have it switch to the new costume, figure out which line isn't touching the wall, and turn in that direction.
Offline