This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-17 12:20:52

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Can someone fix this?

In my Portal Engine, when you shoot a portal to where the character touches black, he gets stuck.  Can it be fixed?


Alt of Firedrake969.

Offline

 

#2 2013-01-17 16:48:07

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Can someone fix this?

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?


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-01-17 18:43:36

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Can someone fix this?

Be underneath the triangle and shoot a portal into it.  Then, step into a portal of a different color.  Voila.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2013-01-17 19:23:32

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Can someone fix this?

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.


http://i46.tinypic.com/35ismmc.png

Offline

 

#5 2013-01-18 12:38:16

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Can someone fix this?

Bump


Alt of Firedrake969.

Offline

 

#6 2013-01-18 19:30:44

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Can someone fix this?

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!


http://i46.tinypic.com/35ismmc.png

Offline

 

#7 2013-01-18 20:09:04

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Can someone fix this?

How would I have the portals point away from the black wall/sprite?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#8 2013-01-18 20:34:38

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Can someone fix this?

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.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer