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.

Staggered events

Tindy

Sponsor

Hey all.

Here's a question for you:

There's four events lined up in a row. I want to be able to, with the help of Wait commands, direct them to start one after the other as timed or all together, as needed.

The problem is that they don't feel like doing this - they'd rather just start the whole command as soon as the first is finished; so, I might be waiting upwards of 60 frames for the 2nd event to move, when I want it to move, say, 20 frames after the first begins.

Any idea why this occurs and what I can do to control it?
 
well instead of a wait until move is completed, just put a wait ____ amount of frames between each movement. Move events happen together and dont wait unless there is a wait until move completion event. :)

EDIT: Also make sure that all the move enents are under 1 event. :)
 

Tindy

Sponsor

Nnnnnnnnnnnnn.....that doesn't *quite* work.

here's the setup:

Code:
Autorun:

@>Set Move Route: This Event

:        :$>Move Up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

:        :$>Move up

@>Wait for Move's Completion

@>Conditional Branch: The Up button is being pressed

    @> Play SE: '001-System01', 80, 100

    @>

   : Else

    @>Play SE: '038-Switch07', 80, 100

@>Wait 2 frames

@>Control Self Switch: A=ON

 

Each event is like that. I just tried the wait command and it just mucks with them, because then I either have to set a wait for the whole time (or it won't work), or just set Wait for Move's Completion. :/
 
try combining all the event into one giant event and use the wail command. See, I think the problem is that they are seperate event and using one giant event isbetter. Also, what about parallel process. :)
 
In general, you're better off using just one event if you have a sequence of moves in mind. Basically, if it's one scene, just code it in one event. (There are exceptions, but they're pretty rare.)
 

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