Making pygame sprites disappear in python
<p>I am working on a rpg game and I want my playbutton to disappear as soon as it was pressed. Is there a method of which I can do that?
I have different game states they are: GAME, MENU, START
The playbutton will appear on the START game state and I want it to disappear when it is pressed or when the game state changes.
Thank you for your contribution</p>

<p>If the button is truly a sprite, you can:</p>

<ul>
<li>Add the sprite to a group called Buttons.</li>
<li>Render the Buttons on the screen.</li>
<li>Use the kill() method to remove the sprite from the Buttons group.</li>
<li>Re-render the screen on the next round.</li>
</ul>

<p><a href="http://pygame.org/docs/ref/sprite.html#pygame.sprite.Sprite.kill" rel="nofollow">http://pygame.org/docs/ref/sprite.html#pygame.sprite.Sprite.kill</a></p>

python pygame