Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Teleportation
- Alex-2739
-
Scratcher
32 posts
Teleportation
Hi! I am just about to play a little game with portals. Unfortunately only the right portal can be used.
Link to the game:
https://scratch.mit.edu/projects/400165352/
Link to the game:
https://scratch.mit.edu/projects/400165352/
- deck26
-
Scratcher
1000+ posts
Teleportation
You need to make sure that when you go through a portal you're not still touching the portal (whether the one you've just gone through or the other side).
A simple fix might be to only be able to go through the right portal when facing right and vice versa.
A simple fix might be to only be able to go through the right portal when facing right and vice versa.
- Alex-2739
-
Scratcher
32 posts
Teleportation
I did it so that the player can only go through a portal again if he does not touch the portal for a moment …
I also did it so that the player turns in the direction he is running.
https://alex-files–alex2739.repl.co/Help.html
I also did it so that the player turns in the direction he is running.
https://alex-files–alex2739.repl.co/Help.html
- Alex-2739
-
Scratcher
32 posts
Teleportation
lol … i finally got it (though i don't know what the bug was)
https://scratch.mit.edu/projects/400165352/
https://scratch.mit.edu/projects/400165352/
- Paigeri
-
Scratcher
500+ posts
Teleportation
Great! So, I'm assuming the problem is fixed? Awesome, would you mind closing this topic please, or maybe report this to be closed? Thanks! ^.^
- deck26
-
Scratcher
1000+ posts
Teleportation
Great! So, I'm assuming the problem is fixed? Awesome, would you mind closing this topic please, or maybe report this to be closed? Thanks! ^.^Owner can only close after 24 hours unless that has changed.
- Paigeri
-
Scratcher
500+ posts
Teleportation
Right, so I suppose they can report their post to close this whole thread, am I correct?Great! So, I'm assuming the problem is fixed? Awesome, would you mind closing this topic please, or maybe report this to be closed? Thanks! ^.^Owner can only close after 24 hours unless that has changed.
- deck26
-
Scratcher
1000+ posts
Teleportation
Yes, or wait until the option appears.Right, so I suppose they can report their post to close this whole thread, am I correct?Great! So, I'm assuming the problem is fixed? Awesome, would you mind closing this topic please, or maybe report this to be closed? Thanks! ^.^Owner can only close after 24 hours unless that has changed.
- Paigeri
-
Scratcher
500+ posts
Teleportation
Thank you!Yes, or wait until the option appears.Right, so I suppose they can report their post to close this whole thread, am I correct?Great! So, I'm assuming the problem is fixed? Awesome, would you mind closing this topic please, or maybe report this to be closed? Thanks! ^.^Owner can only close after 24 hours unless that has changed.
- Discussion Forums
- » Help with Scripts
-
» Teleportation
