Discuss Scratch

Mikyjax
New to Scratch
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
WhyteTIGER
Scratcher
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:
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

Hey there!
I've been active on scratch for almost 5 years on different accounts. I enjoy creating, coding and sharing good quality projects and helping others with their code
My top 3 best projects:
1. HYPERCAR RACING
2. CUBLOX
3. FLAPPY BIRD - Mobile Friendly Remake
Mikyjax
New to Scratch
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 !
WhyteTIGER
Scratcher
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/

Hey there!
I've been active on scratch for almost 5 years on different accounts. I enjoy creating, coding and sharing good quality projects and helping others with their code
My top 3 best projects:
1. HYPERCAR RACING
2. CUBLOX
3. FLAPPY BIRD - Mobile Friendly Remake
WhyteTIGER
Scratcher
16 posts

[SideScroller]When the Player goes to the end and come back all the costumes from the Level are mixed up

Mikyjax wrote:

Thanks a lot for your help WhyteTiger
Can't wait to see your workaround !
No problem! Keep on scratching!

Hey there!
I've been active on scratch for almost 5 years on different accounts. I enjoy creating, coding and sharing good quality projects and helping others with their code
My top 3 best projects:
1. HYPERCAR RACING
2. CUBLOX
3. FLAPPY BIRD - Mobile Friendly Remake
Mikyjax
New to Scratch
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.

Powered by DjangoBB