Discord
Login
Community
DARK THEME

Hide sprite

Is there any way to hide a sprite? like the intro credits hide it

You can use the alpha parameter to make it invisible, but more common is that you just don't draw it.

For that define another parameter like 'drawSprites = true' and check for it with an if...then loop in the draw routine. If you want to 'hide' then you just set it to 'false' in your update.

As usual, many possible solutions, it depends on the whole global context and the structure of your game.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community