Trouble with text after sprite touches gem

I have my sprite programmed to touch an object and have text appear, but my text appears repeatedly when I press A, but I want it to only appear once. I have tried to troubleshoot myself and search for how to correct this and cannot find a clear answer. Please help!

2 Likes

Welcome to the forums! Could you share your game so we have a better understanding on the problem?

1 Like

Please post the code the explanation for this is that since after you touch the gem sprite you get the text and then the next frame you are still touching it so it spawns it again that is the problem to fix this destroy the gem sprite or set property ghost in

2 Likes

hi, and wlecome to the community @AKHT14, could you post the link so that we can have a look at whats going on?

If im understanding corectly what your saying, this should work

You can replace the “on A button pressed” with anything