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.

I just can't seem to get it right for some reason

I've been trying all night but I can not seem to hatch this stupid EGG! Ok so this:



@>Control Timer:Startup (0min.10sec)
@>Conditoinal Branch: Timer 0min 0sec or less
    @>Control Timer:Stop
    @>Set Move Route: [Oegg]
     :                        :$>Graphic:"002-Fighter02',0,2,0
     @>
   :Else
    @>
   :Branch End


is suposed to "hatch" my orange egg when the timer hits 10 secs (just change the graphic) but it doesn't work at all, the timer doesn't even count down. I've been up for more than 26 hours, and I thought I'd finally post this to see if anyone can help me.

I forgot to add that this is a parallel process
 

khmp

Sponsor

A parallel process event runs every chance it gets so let's think about it from the program's perspective. You enter the map with this parallel process event. The parallel process event runs. The timer is initialized to 10 seconds conditional branch timer is less equal to 0 seconds. Do something. Alright now the parallel process event runs again. The timer is again initialized to 10 seconds. Basically the timer is constantly reset to 10 seconds and because of this it will never reach 0. You need to think of a way to initialize the timer once. And have the check for 0 or less seconds a parallel process.

Good luck with it TheRock1! :thumb:
 
Adding on to what khmp said, you can turn on a self-switch after setting the timer, then on a second page (with condition that said self-switch is on) have the Conditional Branch checking the time. Alternatively, you can also do "Wait: 200 frames" and then hatch the egg on the same page, if you don't want the timer to show in the top-right.

khmp im gonna ban you :mad:

Hmm wait... mega ultrazord you say... I'm in!  :lol:
 

Nachos

Sponsor

Page 1:

Parallel process.

Code:
@>Control Timer:Startup (0min.10sec)
@>Contrl self-switches = [A] = ON

Page 2:


Condition : Self-Switch A = on
Parallel process

Code:
@>Conditoinal Branch: Timer 0min 0sec or less
    @>Control Timer:Stop
    @>Set Move Route: [Oegg] 
     :                        :$>Graphic:"002-Fighter02',0,2,0
     @>
   :Else
    @>
   :Branch End
 
somehow between 4 and 6 am  I accidentaly deleted the second page of event, I fell asleep just a minute ago and when I woke back up I realized my HUGE mistake. Thank you everyone
 

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