I’m working on a game, and I need the player to have his death animation without moving. Is there any way to disable key movements?
1 Like
- set a global variable that can be seen by everyone like “project.isAlive = true”
- for each control, say “if (project.isAlive === true) {
// key control
}” - when the player dies, say “project.isAlive = false”
- when the player starts up again, you can set project.isAlive to be true.
2 Likes
Thank you for the help! I really appreciate it.
1 Like