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.

Common event for starting a fire.

Okay, basically my problem is how to get a sprite to show for my common event. What I have so far is..


[Trigger:] Parallel [Condition Switch:] 0050: Fire


Event Commands:

@>Conditional Branch: The A[Shift] Button is being pressed
­­ @>Set Move Route: This Event
: : $>Graphic (Custom campfire Graphic)
: : $>Stop Animation ON
@>Set Move Route: Player
: : $>Change Speed: 3
: : $>1 Step Backward
: : $>Change Speed: 4
@>
: Branch End

I know the conditional branch and switch work because the player moves backward but why doesn't the campfire graphic appear?
 
I'm not sure, but I am guessing, that a common event doesn't exist on a map. Therefore, if you change the graphic, you still won't see it because it doesn't have a location.

I'm thinking that you'll have to create 1 picture from each stop frame in your fire character graphic.

then have commands like this

@>Conditional Branch: The A[Shift] Button is being pressed
­­@>Set Move Route: Player
: : $>Change Speed: 3
: : $>1 Step Backward
: : $>Change Speed: 4
control switches showfire = on
wait 60 frames
recover entire party
play ME heal
wait 60 frames
control switches showfire = off
: Branch End

common event showfire trigger parallel with switch showfire
show picture 1 centre 0, 0 fire graphic 1
wait 5 frames
show picture 1 centre 0, 0 fire graphic 2
wait 5 frames
show picture 1 centre 0, 0 fire graphic 3
wait 5 frames
show picture 1 centre 0, 0 fire graphic 4
wait 5 frames


This will put a flickering fire in the middle of the screen while the showfire switch is on. Its not going to let you get up and walk away from the fire though, because the picture will remain in the middle of the screen and follow you around. I also put the player movement before the showfire for the same reason.

If you want to be able to start a fire anywhere, and get up and walk away from it, you'll have to use a map event parallel process on each map. When you press the appropriate button, change the location of the event and change the graphic. This will allow you one fire per map, but then you can put it anywhere on the map and leave it there until you leave the map.

The third option is to have set places where you can make a fire. Make campsites, and in the middle of a campsite have an event, trigger action button, with the commands you listed above.
 
I see what you mean. The second option may work better, sounds easier too. I'll test it out right now and post the results.


Or I could use the third option to make camp fire places for special purposes, save events, etc.,


Hmm.. I like that idea better, thanks.
 

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