Main /
Astart Astop Animation Synchronization
Search:  

Academy Topics

Articles relating to Active Worlds
Help with Objects, Textures, Masks, Coronas, Movers, Avatars, Sequences and more.
Guides on how to do various things in Active Worlds
Graphics, ads and sounds for use.
Downloadable AWG's, Particles, Movers and Building Code

Useful Links (more)

SW City Network

Overview


This technique is used to sync AAA sequences between users. For example say you made an AAA sequence that causes a machine to activate every 60 seconds. Under normal circumstances, that 60 second illeration would be based on when the user loaded the area, and be out of sync with everyone else.

AAA sequence syncing is a tad clunky and not 100% reliable, but short of using a bot, there's one technique that comes pretty close.

Technique


The idea here is to use the bump trigger, global flag, move, and rotate commands in tandom, and maybe a few others depending on circumstances. Here's a step by step guide of what's done:

  1. Build a large ground object, such as flat1a_l.rwx. This is known as the bumper.
  2. Place this object deep underground, like -900 meters down.
  3. Place a move command on it so that it'll hit the surface every 60 seconds, but only briefly: create move 0 900 time=30 loop sync
    The object will spend 30 seconds travelling to the surface (900 meters up, since we placed it -900 down initially), and 30 down, giving us a 60 second cycle. The reason we make the object travel such a long distance is so that it's moving quicker and doesn't spend too much time on the surface. The more time it spends on the surface, the longer the disruption window. That is, if someone enters the area while the object is around the users, it'll disrupt the sequence for everyone else.
  4. You may have better bump reliability if you apply a rotate command on the bumper (as if it were a waterwheel).
  5. Add the actual bump trigger to the bumper, with the global flag. bump astart <name> global
    It's still possible people won't actually get bumped, because if your browser is minimized, bump triggers don't always work. With global enabled though, it only needs to bump one person for everyone to sync up.
  6. Add a command to the bumper so that it moves out of the way if hits someone. This way it's not going to trigger more than once if multiple people are in the way. bump move 0 -999 time=0 wait=9e9
  7. Somewhere in the AAA sequence itself, you'll need to re-apply that move command to the bumper because it's move was disrupted by the previous step. Ideally at the halfway point (30 seconds into the AAA sequence), reapply the move command to the bumper. move 0 900 time=30 loop sync name=bumper
  8. On the AAA seqence itself, add a sequence that starts on the 61st second (for your 60 second sequence example).
    This is a backup sequence. If nobody got hit by the bumper the backup will manually restart the sequence. The first object in your AAA sequence should startup the backup sequence.
  9. Make your bumper object astop just the backup sequence if it hits someone, so it doesn't disrupt the next cycle bump astop backup
  10. To cover more ground with your bumper, apply a scale command to it. create scale 5
Page last modified on September 07, 2008, at 03:10 PM
Edit SideBar Edit Page | Page History | Print