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.

Guide To Events

Here is a small guide to teachiing newbies and oldbies alike about events.

Contents:
I. A Basic Event
II. Building Up On Events
III. Giving Realism In Events
IV. NPCs
V. Event Test

A Basic Event[/FONT]
Well, to start off, we'll do something REALLY simple. A door event. We all know the code, and some of you are thinking "heh, I don't need this, I know how to make a door event". But that's just being obnoxious.
Code:
@> Move Event: This Event
$> Turn Left
$> Wait 4 Frames
$>Turn Right
$> Wait 4 Frames
$> Turn Up
@> Wait For Move's Completion
Real basic, isn't it. Well it's time to start...

Building Up On Events[/FONT]
Code:
@> Move Event: This Event
$> Turn Left
$> Wait 4 Frames
$>Turn Right
$> Wait 4 Frames
$> Turn Up
@> Wait For Move's Completion
Now that's probably the most basic code in the world, so now we'll get a little more advanced...
What Hero would be so impolite as to not knock on doors? So we'll add a little knock effect.
Code:
@> Play SE: Knock01
@> Wait 5 Frames
@> Play SE: Knock01
@> Wait 8 Frames
@> Play SE: Knock01
@> Wait 4 Frames
@> Play SE: Knock01
@> Wait 13 Frames
@> Play SE: Knock01
@> Wait 5 Frames
@> Play SE: Knock01
@> Move Event: This Event
$> Turn Left
$> Wait 4 Frames
$>Turn Right
$> Wait 4 Frames
$> Turn Up
@> Wait For Move's Completion
You don't have to do THAT exact knock, but it's good sounding one. Now what kind of person would just let someone walk in their house and do whatever? The sicko kind. So we'll make them non-sicko by doing this...
Code:
@> Play SE: Knock01
@> Wait 5 Frames
@> Play SE: Knock01
@> Wait 8 Frames
@> Play SE: Knock01
@> Wait 4 Frames
@> Play SE: Knock01
@> Wait 13 Frames
@> Play SE: Knock01
@> Wait 5 Frames
@> Play SE: Knock01
@> Show Text: Who's there?
@> Show Choices:
:   :[A Mighty Hero] Handler
  @> Show Text: Liar, I bet you're just another Jehovah's Witness, Get lost!
:   :[Ice Cream Man] Handler
  @> Show Text: Ice Cream Men don't take deliveries!
:   :[Your Mom] Handler
  @> Show Text: Right... She's dead, you dolt!
:   :[A Sexy Lady] Handler
  @> Show Text: Hang on a minute...
  @> Move Event: This Event
  $> Turn Left
  $> Wait 4 Frames
  $>Turn Right
  $> Wait 4 Frames
  $> Turn Up
  @> Wait For Move's Completion
  @> Show Text: AHHHHHHHHHH!!!!
  @> Move Event: This Event
  $> Turn Down
  @> Play SE: Door01
So you see, a simple door event can become something really open-ended.

Realism In Events[/FONT]
Some games suffer from HORRIBLE unrealism. Here you can learn to put in stuff to make your game better. Start a nice new event, and for the sake of organization, call it ambience. Put this code in, and soon you'll be able to make your game a video of the real world.
Code:
@> Wait 200 Frames
@> Play SE: Small01
@> Wait 154 Frames
@> Play SE: Small05
@> Wait 247 Frames
@> Play SE: Small03
@> Wait 372 Frames
@> Play SE: Small01
@> Wait 173 Frames
@> Play SE: Small03
So there you have some nice background sounds of animals in your game, much better than just music and cutscenes, isn't it?

NPCs[/FONT]
For some people making an NPC is just simply writing a Show Text and being on their way. But that makes a game MASSIVELYUnprofessional, Unrealistic and makes the NPC a jackass. If you really want some open-ended-ness. Check this here:
Code:
  @> Show Text: Who the hell are you and why are you talking to me?
# Here you either use a variable or multiple pages, here I'll use multiple pages.
  @> Self Switch A: On
Next, make a new page, make the precondition Self Switch A On, with the same graphic and everything.
Code:
  @> Show Text: I said who are you, why do you keep following me, I have : :a knife!
  @> Self Switch B: On
Then do the same as last time, with the precondition Self Switch B On
Code:
  @> Show Text: Jesus Christ! You're a sicko!
  @> Move Event: This Event
  $> Now just make him run off the screen
  @> Self Switch C: On
Then make a final page, with precondition Self Switch C On, and with no graphic.
There you have it! Making the hero creep the shit out of a guy!

Event Test[/FONT]
Now, to depart from this guide, I'll give you all a little test, to see what you actually know, and what you've learned. PM your answers to me, along with the questions, and i'll see how you did.

I. What cannot be used to give realism?
A. Speech
B. Sound Effects
C. Many Sprites

II. Why do we add extended complex things in events?

III. Make a small event or NPC code, then show a build up of it.

I may add more to this. Goodbye.
 

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