Hello, so for a school project, I need to create a game using Greenfoot. I have decided to create a platformer game where the player collects a key that unlocks the door, which advances you to the next level. I will also be adding enemies in soon but for now, I need help with this:
I would like so that when my player comes in contact with the key, the key is removed, but then when the player reaches the door, the door will be unlocked, allowing the player to go through it and advance to the next level. I also have two images for my door. One is a closed door and the other is open. So the door will be closed until the player comes into contact with the key. After that, the door opens. I hope all this makes sense. I am still rather new to greenfoot and have no clue as to how I would code this.
thank you! :)