baardbi
Well-known member
Here's a trick I learned from @dale_coop. So I take no credit for this.
If you need to temporarily hide the player and make him inactive here's what you do:
Disable player:
To enable him again just use this code:
Enable Player:
While inactive the player will be invisible and you can't control him. He will not have any collision and can't interact with his surroundings.
If you need to temporarily hide the player and make him inactive here's what you do:
Disable player:
LDA Object_status,x
AND #%11000001
STA Object_status,x
To enable him again just use this code:
Enable Player:
LDA Object_status,x
ORA #%00111110
STA Object_status,x
While inactive the player will be invisible and you can't control him. He will not have any collision and can't interact with his surroundings.