Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: actor object variables  (Read 2346 times)

0 Members and 1 Guest are viewing this topic.

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
actor object variables
« on: October 04, 2007, 01:33:03 AM »

I'm going to be using 5 identical actors loaded into the same scene with global variables for each.  Call them joe1,joe2,joe3, etc.  I also have 5 positions that the actors will stand in, but the actors will be able to switch positions.  I want to be able to access the actor by the position it is in.  Using the x and y may be risky because the actor might not be perfectly in that position.  I tried using global position variables and storing the global actor variables but it locked up.

What I want to do is get actor in positon 2, move to postion 3, without knowing which actor is in that position. Any ideas on how I might do that?
Logged

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: actor object variables
« Reply #1 on: October 04, 2007, 03:31:07 AM »

I came up with a way.  I assigned each actor a .pos value of 1 to 5 and then cycle through the actors until I find the position I want.
Logged
 

Page created in 0.073 seconds with 20 queries.