C
Coolyo_Lars
Guest
Hello all,
I am currently working on a game for school. We just didn't have an explanation so I probably do something very stupid but I can't find a good solution anywhere. I'm making a platformer where a player has to jump to a door to get to the next level. I have two doors: the right door (this takes the player to the next level) and the wrong door (this takes the player back to the start of the room).
Software I use:
This is what I came up with:
if (keyboard_check (vk_space)) || place_meeting (x, y, RightDoor) {
room_goto_next ()
}
but now the player also goes to the next room without clicking the space bar. How can I best solve this?
Thank you for the help.
I am currently working on a game for school. We just didn't have an explanation so I probably do something very stupid but I can't find a good solution anywhere. I'm making a platformer where a player has to jump to a door to get to the next level. I have two doors: the right door (this takes the player to the next level) and the wrong door (this takes the player back to the start of the room).
Software I use:
- Gamemaker 8.1 lite
This is what I came up with:
if (keyboard_check (vk_space)) || place_meeting (x, y, RightDoor) {
room_goto_next ()
}
but now the player also goes to the next room without clicking the space bar. How can I best solve this?
Thank you for the help.