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.

Two event help questions

A screen shot related to both questions is in the spoiler tags below.

http://i107.photobucket.com/albums/m284/shadowmimiiru/2questioneventscreen.jpg[/img]

1.  This one is the easy one and yet it's caused me no end of annoyance.  I'd like the fire to cycle through it's animation so that it doesn't look like a lifeless pasted on thing.  However what keeps happening for me is that it cycles through the first part of the animations for the other lights so I get: Camp fire, Lateran , other light, other light.

2.  You see their is a lot of leaves on the ground, when the player walks over a leaf it makes a crunching sound.  You'll also notice a path with no leaves leading to the cave.  What I'd like to happen is that after the player has "crunched" 3 leaf piles the kobolds at the fire race up and attack.  Each leave has an accompanying event that makes the crunch sound, but since they players might not step on 3 leaves in order or even all at once how can I get the kobolds to attack?  I figure it'd have to do with variables, but ... those confuse the hell out of me.
 
You may also need to check "Direction Fix" on the fire-- it's a good habit to do that for events that you want to cycle through one set of animation frames only.

For the other, you assign a variable-- call it "Leaf Crunch" or something else that you'll remember. 

Each time that you activate one of those leaf piles, use Control Variables to add 1 to the variable.  (Make sure that you picked "Add 1" and not "Set to 1"-- it's sadly easy to miss that.)

The Kobold Attack event will presumably have an autorun page that's got the trigger conditions of Leaf Crunch=3.  Ta da!

(I'm assuming here that you know how to use self switches and pages to have events run only once that you want to run only once.)
 
Unka Josh":24zkd7xe said:
You may also need to check "Direction Fix" on the fire-- it's a good habit to do that for events that you want to cycle through one set of animation frames only.

For the other, you assign a variable-- call it "Leaf Crunch" or something else that you'll remember. 

Each time that you activate one of those leaf piles, use Control Variables to add 1 to the variable.  (Make sure that you picked "Add 1" and not "Set to 1"-- it's sadly easy to miss that.)

The Kobold Attack event will presumably have an autorun page that's got the trigger conditions of Leaf Crunch=3.  Ta da!

(I'm assuming here that you know how to use self switches and pages to have events run only once that you want to run only once.)

That worked perfectly.  Thanks Unka, and thanks again to Dadevster as well.
 

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