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: actor.SkipToObject - Method  (Read 2805 times)

0 Members and 1 Guest are viewing this topic.

robot

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
actor.SkipToObject - Method
« on: November 13, 2008, 09:58:41 PM »

there is a GoTo, a GoToObject, a SkipTo but i didn't found a SkipToObject method for the actor.
would this be a problem?
Logged

sychron

  • Wanderer zwischen den Welten
  • Global Moderator
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 223
  • There is no spoon. The enemy gate is down!
    • View Profile
Re: actor.SkipToObject - Method
« Reply #1 on: November 13, 2008, 10:51:55 PM »

You can use a workaround ... get the objects x and y and use the actors skipto (with slightly modified coordinates) and lokat methods.

gotoObject() is intended for dynamic in-scene use, so normally you just use skipTo at the start of a scene ... unless you want to script a teleporter, that is.
Logged
... delete the inner sleep ...

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re: actor.SkipToObject - Method
« Reply #2 on: November 13, 2008, 10:53:12 PM »

Or directly actor.SkipTo(SomeEntity.WalkToX, SomeEntity.WalkToY);
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.105 seconds with 23 queries.