Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: elevator  (Read 2853 times)

0 Members and 1 Guest are viewing this topic.

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
elevator
« on: March 23, 2007, 12:58:33 AM »

How would you have the actor follow an elevator going up or down?  I thought about attaching the elevator to the actor and then moving the actor, and I may do that, I was just wondering what other ways there were.

edit:  I found PlayAnimAsync() in the help files.  Perhaps that would be best.  I can just put them both in a loop.
« Last Edit: March 23, 2007, 02:57:39 AM by fireside »
Logged

sharkbait

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: elevator
« Reply #1 on: March 23, 2007, 05:24:30 PM »

If you simply want the actor to stand still in the elevator while it moves up or down, you can simply have the actor walk to the elevator, disable interactivity, turn off the actor, and activate a sprite for the actor moving in synch with the elevator. At the end of the animation (guided by a script), remove the static actor sprite, activate the actor again and set it's position using SkipTo().

If you want the actor to move around in the moving elevator I think you will need to retain the actor but have it's Y position changed in line with the elevator. You will also need to have a moving region to define the walkable area in the moving elevator. I'm not quite sure if it would work, but hopefully it's a start!
Logged

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: elevator
« Reply #2 on: March 23, 2007, 11:43:57 PM »

I just made an animation for the elevator that moved 4 pixels, looped it and had the actor skip to a position relative to the elevator each loop.  Seems to work O.K.  Thanks for the ideas. 
Logged
 

Page created in 0.041 seconds with 20 queries.