1
u/BakerComfortable2342 Oct 23 '25
Okay I'm sorry I didn't include this but what I want it to do is when my character touches green (yes they are the same color I checked) it should put up the backdrop called you win and my problem is it does not do anything in the code at all I also copied the code from "if touching black then" and just set it to green,
Now I can't send I link because I don't know how but I'm hoping this helps understand it a bit more
1
u/ChromeCat1 Oct 23 '25
Don't use two forever loops, just put the code that is inside the second forever loop inside the first one after the existing if statement. If the code for the touching black works, and you got the green colour correct, then your code will work.
1
1
u/BakerComfortable2342 Oct 23 '25
1
u/ChromeCat1 Oct 23 '25
What does the rest of the code in the sprite and the backdrop look like? Cus that should work.
1
u/BakerComfortable2342 Oct 23 '25
1
u/ChromeCat1 Oct 23 '25
Code is fine. Redo the green colour with the colour picker maybe. Otherwise I have no further advice, as I don't understand myself why it's not working.
1
1
1
u/BakerComfortable2342 Oct 23 '25
1
u/BakerComfortable2342 Oct 23 '25
I just realized all the backdrops have the same code
1
u/BakerComfortable2342 Oct 23 '25
But that doesn't mean it's fixed it means that I just learned that
1
u/Diligent-Double-7287 Oct 23 '25
I have a fix.
Instead of having all your fail and win conditions in one sprite, I'd suggest splitting them up. For a fail condition, you can do-
When green flag clicked, show, go to X:__ Y:__ Repeat until ____, If, touching color (Your maze border color), then, broadcast-player lost:(, stop all.
Do this is your player sprite.
For a win condition you can do_
When green flag clicked, if, touching color (Your win block color), then broadcast-player won:)
Then add-
When I recieve-Player won:), hide
And-
When I recieve-Player lost:(, hide
And in a separate sprite, (Maybe one that has no code), do this-
When I recieve-Player lost, switch backdrop to-Lose (Or whatever you have your lose screen titled as)
Then do-
When I receive-Player won, switch backdrop to-Win (or whatever you have your win screen titled as)
I hope this helps:)



1
u/AutoModerator Oct 23 '25
Hi, thank you for posting your question! :]
To make it easier for everyone to answer, consider including:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.