How to stop a player from moving the character after finishing the level?

So basically at the end of each level, my character has to collect a gem, i want the player to stop having control of moving left, right, or jumping once he collects the gem so that 2 seconds later the screen cuts to the "choose level" screen. I already have that level screen working, I just don't know how to stop the character.

Comments

  • Twayne2Twayne2 Member Posts: 458

    Add a global attribute called whatever you want to. Say the player can move and jump only if that attribute is 0. If the player touches the gem, set that attribute to 1.

  • mypingo7mypingo7 Member Posts: 22

    thanks it worked :D

Sign In or Register to comment.