How can I make my character hide in a sprite, that is, it gets inside the sprite and disappears and then I press a button and it leaves the sprite again
Develop games in your browser. Powerful, performant & highly capable.
You can use many ways
1. Change Z order
2. Invisible the character
3. Set character position to an outside layout x,y coordinate