m3rl3
October 25, 2025, 3:58pm
1
Hi I´m new on snap and not very good with programming.
I want to program a game. For that every time my player touches the opponent, I want to loose a heart. (It turns grey)
For the first heart it works but for the second and third… I dont know what to do. If the player touches the opponent a second time the second heart is supposed to turn grey. I thought maybe i could use the operator “touching=2” but it doesnt work.
I hope maybe someone could help me or give me an impulse…
Use the amount of losses as a number rather than multiple variables.
From there you can set the heart costume based on the value of “losses”.
m3rl3
October 25, 2025, 10:25pm
3
Thank you! My code is working now
just saying, the when <> is really slow. you should use
(drag this image into snap).
Also, since redgrographysnap answered your question, you should probably mark their post as the solution.
m3rl3
October 26, 2025, 12:22pm
5
Thank you, i will try this. I didnt know i could do that but i marked it as the solution!! TY
you’re welcome! let me know if my solution works.