The apple and grave works well, the carrots do change like it supposed to, but as soon as I touch a sprout/carrot, the text disappears and I cant see how many carrots I have
“change the text…” still disappears even if it’s ontop the “delete sprout”
it probably has to to do with this sub-event under the carrot pickup.
the [ “total carrot” + ToString(variable(carrot)) ] can only be ever triggered once due to the conditions you put. This means that the sub-event that delete the text (aka. sets text to “”) will permanently remove the text displaying your total carrots. if this is what you want then fine.
is your player more than 20 pixel from the sprout when you press on it? if so… then the [ set text to “” ] will automatically trigger and remove the text. never to appear again, unless you click on another sprout (but the same thing will happen).
there is a million ways to fix this. just put another condition for the deletion of the text (and you probably want it outside of the main event. Because as it is right now, the text deletion will only trigger at the moment you click on a sprite). or you make it so you can only harvest when close to the carrot.