Can someone help me find the glitching code in this?



Hi, I have a problem. So basically, in my game, it's supposed to say you win or you lose after the values are calculated and the text for the amount of things bought are shown. It is saying You Win and/or You Lose before the text amounts are even showing up. I have looked through my code in the #food sprite and the wol (win or lose) sprite. I cannot seem to find any mistakes in it. Can someone please help me find the bugs in this code?


And since it is Sunday, I'd think everyone was on, and I'd appreciate some help :slight_smile:


List (114 tags)
@Milkypup lol
Get the latest list here:


Okay, I'll try looking through it. :D


Hmmm, I'll see what I can do.


May you please list all the objects that affect the "win" variable?


So, I'm a little bit stumped.

I think the problem is that the values that must be a certain number for you to win or lose are being accidentally set to that number somehow?


Well, the #food and all the things being sold, and the Wol text.


I set that when invisibility for alright... is 0, I did two whens in one object and set the values after that.

SO in that object it would be

When alright invis% = 0
Wait 3k milliseconds
[you win ability]
set win to 1
Set lose to 0

And in another rule the same thing but you use it for lose and the variables and ability is different


Where do you store the variables for the foods? Sometimes, even if I choose the wrong foods, it tells me to pay my taxes, and that I win.


In #food I think


What the why does this have nine likes
facepalm it's just the OMTL XD


Wait, didn't you post this a few months ago as well?


YEHA but I finished the game now but it has different glitches


I looked through the project posted above and do see some problems related to "You win"/"You lose". Are you still looking for help?


Yes, would you care to give me some help?



After it says "I got..." can you describe for me exactly what you want it to do?

  1. List out what was purchased, e.g., 5.... Apples.... 2.... Shrimps
  2. Then display either "You win" or "You Lose"


Not sure if this will work but let's see. I took a bunch of screenshots while I edited the code and made them into a slideshow.



Wow I think that's lovely of you to make that...I was just going to add, does screen-recording work? (You can use the in-app screen recorder then press edit to record the editing screen too)


Oh I can't see that, sorry I didn't reply earlier by the way