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.

Trouble with Events

I'm trying to set up events so that upon the player making a wrong choice, a bat appears, flies over from the right, drops a rock on the player's head, and then both the bat and the rock disappear. So far, I have the choice set up, and the wrong choice activates a switch (0005: Bat). Upon activation, I have an event [EV012] set up 3 spaces above and 4 spaces to the right. This event's graphic changes to a Bat character I have set up, and it moves 4 spaces to the left and activates the next switch (0006: Dropped). Page 2 of the Bat's event page activates when Dropped is on, and has nothing in it. When Dropped is activated, a second event [EV013] appears 2 spaces above the player's head, the rock. The rock moves down 2 spaces, then triggers the next switch (0007: Death 1). EV013's second page activates on Death 1, having nothing in it, turning the graphic to (None). Page 3 of the EV012 also activates on Death 1, changing the graphic to a poof cloud, and activating third switch, (0008: Bat Gone). Page 4 of EV012 is blank, changing the graphic to (None).

It seems in theory that upon activating the first switch, the bat should come in from the right, reach the spot above the player's head, drop the rock, the rock should travel down, then both the rock and the bat should disappear. However, when I actually run it, the bat travels left the four spaces, and then the rock appears and immediately disappears, then the bat disappears. What have I done wrong?

EV012, Page 1
Switch 0005: Bat is ON
Trigger: Autorun
Graphic: Poof cloud
Wait: 10 frames
Set Move Route: [EV012] (Ignore If Can't Move)
      Graphic: "Bat", 0, 4, 0
      Wait: 10 frames
      Move Left
      Wait: 8 frames
      Move Left
      Wait: 8 frames
      Move Left
      Wait: 8 frames
      Move Left
Wait: 70 frames
Control Switches: [0006: Dropped] = ON

EV012, Page 2
Switch 0006: Dropped is ON
Trigger: Action Button
Graphic: Bat

EV012, Page 3
Switch 0007: Death 1 is ON
Trigger: Autorun
Graphic: Poof Cloud
Wait: 20 frames
Control Switches: [0008: Bat Gone] = ON

EV012, Page 4
Switch 0008: Bat Gone is ON
Trigger: Action Button
Graphic: (None)

EV013, Page 1
Switch 0006: Dropped is ON
Trigger: Autorun
Graphic: Rock
Set Move Route: [EV013] (Ignore If Can't Move)
      Wait: 4 frames
      Move Down
      Wait: 4 frames
      Move Down
Wait: 46 frames
Control Switches: [0007: Death 1] = ON

EV013, Page 2
Switch 0007: Death 1 is ON
Trigger: Action Button
Graphic: (None)

(I know the wait times are screwy and rather long, but I'm still trying to get the timing down, and also trying to get the rock to actually stay on the screen for more than a split second).
 
I'm not exactly sure what's happening, but you can clean up your eventing a bit, and that might clear up the problem.

Rather than using so many switches, you can merely use one event page. On the bat event, you can use "Set Move Route: [Rock]" and make the rock move and disappear itself. There's also a change graphic event so you can make it disappear and appear.

Once you're done, all you have to do is turn on "self-switch A", create a new blank page, and check the conditions: "Self-switch A == on."

Hope you understood all that, it's just to clean up your eventing and save some switches. Maybe by doing that you can even find and fix your problem. :thumb:
 

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