Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » [SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
- Mikyjax
-
3 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
Hello,
I'm really new to scratch and trying to get the hang of it. I made this project to show you the bug I have:
Check the program here
Basically, I instantiate 3 times my level and use 3 costumes. When the Player goes to the end of the level and comes back, all the costumes from the Level are mixed up. It's like they push each other with some collision. I'm really not sure if it's an error in my logic or if there is a known bug here. Could you have a look please?
The project is just 2 sprites made to showcase my issue.
Big thanks and have a good day!
Mike
I'm really new to scratch and trying to get the hang of it. I made this project to show you the bug I have:
Check the program here
Basically, I instantiate 3 times my level and use 3 costumes. When the Player goes to the end of the level and comes back, all the costumes from the Level are mixed up. It's like they push each other with some collision. I'm really not sure if it's an error in my logic or if there is a known bug here. Could you have a look please?
The project is just 2 sprites made to showcase my issue.
Big thanks and have a good day!
Mike
- WhyteTIGER
-
16 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
Hi! I think I can help you 
You said:
You were kind of right… In scratch sprites cant infinitely move. They have a limit. But there is a way to solve this. All you have to do is make their own variables with their positions.
I can remix your project and fix it! Just give me a couple of minutes! Oh and I will do it on my second account: WhyteTIGER_TEST

You said:
It's like they push each other with some collision
You were kind of right… In scratch sprites cant infinitely move. They have a limit. But there is a way to solve this. All you have to do is make their own variables with their positions.
I can remix your project and fix it! Just give me a couple of minutes! Oh and I will do it on my second account: WhyteTIGER_TEST

- Mikyjax
-
3 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
Thanks a lot for your help WhyteTiger 
Can't wait to see your workaround !

Can't wait to see your workaround !
- WhyteTIGER
-
16 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
It's finished! here you go! https://scratch.mit.edu/projects/1020423582/
- WhyteTIGER
-
16 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
No problem! Keep on scratching! Thanks a lot for your help WhyteTiger
Can't wait to see your workaround !

- Mikyjax
-
3 posts
[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up
It works perfectly. Thank you very much. Even if I'm not sure why this works ^^
Thank you for your time.
Thank you for your time.
- Discussion Forums
- » Help with Scripts
-
» [SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up