Event on top of an event?

● ARCHIVED · READ-ONLY
Started by awesomepigman 5 posts View original ↗
  1. Okay, I am a complete newb so this might sound dumb but I couldn't find a solution anywhere so here it goes:

    I want to make a trapdoor, that I can do easily, and I want to make a move-able/push-able statue, also easy. My problem is I want this statue to be on top of the door so the player pushes it out of the way to reach the door but the only way I can think of doing this is two separate events on top of each other which to my knowledge isn't possible. So how can I have this statue be on top of the door, move to another tile but the door remain in the same place. 
    Any help is welcome, thank you in advance.
  2. instead of the usual teleport's fade for this map, you could use a forded fade out, teleport, move this statue to over the trapdoor and fade in. it won't be seamless, but...
    (reminding that there is a "set event location" command)
  3. Have a third event on the map with 2 event pages.


    Page 1 is a parallel process and simply does a Set Event Location to move the statue on top of the door, followed by an Erase Event.


    Page 2 has a switch as a condition and has NO other changes.


    On your statue event (which will be positioned where the player eventually pushes it to), when the player pushes it out of the way, turn on that switch.


    What will happen is that every time you come to this map BEFORE moving the statue, the parallel event will move it over the trapdoor. Because it happens in a parallel event, you will NOT see it move into place - that'll be done before the screen fades in (so you don't need to resort to modifying the fade/teleport commands as suggested above). When you move the statue, the switch will be turned on, and every time you enter the map after that, the statue will be in the place where the player pushed it to.


    You should also give your statue a second event page that has the same switch as a condition, so after it's been moved once, they can't keep moving it around anymore.


    This is the most simple way. If the player can push it in several directions and you want it to stay in that location when you come back, it would complicate it a little more. You could still use an event, or my Remember Event Position script.
  4. Waterguy said:
    instead of the usual teleport's fade for this map, you could use a forded fade out, teleport, move this statue to over the trapdoor and fade in. it won't be seamless, but...

    (reminding that there is a "set event location" command)
    I'm working on this game for the Indie game maker contest so I really want it to move on screen, also I tried the set event location command and it got kinda glitchy as sometimes the trapdoor would work sometimes it wouldn't and I didn't know how to fix it.

    Thank you for your advice though I appreciate it. :)

    Shaz said:
    Have a third event on the map with 2 event pages.

    Page 1 is a parallel process and simply does a Set Event Location to move the statue on top of the door, followed by an Erase Event.

    Page 2 has a switch as a condition and has NO other changes.

    On your statue event (which will be positioned where the player eventually pushes it to), when the player pushes it out of the way, turn on that switch.
    This is perfect for what I needed, thank you. I just needed it to move once with the players touch then stay that way. I made the mistake of trying to set event location on the actual statue itself then have it run as an autorun event but there was so much wrong with that. This worked well and I'm happy with how it works. Once again thank you!
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.