Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Noobie push switch question...

Seda

Member

so I am trying to make a small event where the player has to push an object onto a switch to open a door. So far I have it so that the object is pushable. I am just not too sure on how to make it so that the door will ONLY open if the object is pushed onto switch.
 
Basically, you just need to have a Parallel Process event check to see if the object's X and Y are equal to the switch's X and Y. Search these forums for "Boulder push" if you want to track down a more detailed tutorial, with screen shots.
 
If you're using an event for your button, the x and y won't work because two events cannot overlap each other. With that said. I'm honestly not really sure how you do this. I wish you luck, though.
 
Mikee":xwv9by4h said:
If you're using an event for your button, the x and y won't work because two events cannot overlap each other. With that said. I'm honestly not really sure how you do this. I wish you luck, though.

They can, as long as the switch is set to through.
Easy as that.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top