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.

Moving boxes to a location, thus triggering something

I've been trying to figure this out...I'm pretty sure its possible. And it's probably really simple too. I just can't figure it out. Ok. Here it goes.

In my game...you have to push a bunch of boxes around a room. If you push the box to the correct spot..something will happen.

So my question is...how do I make that something happen when a box event gets to a certain spot on the map?

I hope you understand this ':|
I'm trying to make it so if you get 3 boxes into the 3 locations, a switch will appear in the room that you can pull.
Something like...if box event is in specific location, then the switch would appear.
 
Well, you could have it so that there's an event over the area you want the boxes to have to be over (Using 'event touch' as the trigger for the event over the specific area.), and you could have it so that a certain switch turns on, and when the other two boxes are on their areas, two more switches turn on, and on a final event, have it so that once all three switches are on, the lever is displayed or whatever you want to do with it.

Hope that helps!
 
Ah I think I get it now :D Thanks for the help.
EDIT: Hmmm. I might be doing it wrong. OK. In the box event. I have conditional branches if up down left or right are pressed, the box would move in those directions. So I put the box event on Event Touch. But when the box goes onto the location, nothing happens :P Hehe. ><
 
Terru16389;278838 said:
(Using 'event touch' as the trigger for the event over the specific area.)

That is not how event touch works at all. It's not if the event is touched by another event. It works if the event touches you. The difference from player touch is that you have to move into the event to trigger it, even if it has moved nearer you. Event Touch starts the process when the player and event meet.
 

Kraft

Sponsor

I made a game that used something like this in it...

Go and look in the Game academy, in assignment... 3 I think (or 4)
It is the dungeon assignment.

Download mine, and open it up and you can see how I did it.
 

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