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: TurnTo(this) not working on back wall  (Read 3118 times)

0 Members and 1 Guest are viewing this topic.

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
TurnTo(this) not working on back wall
« on: June 02, 2008, 10:16:01 PM »

I'm using a TurnTo(this) on a side wall cabinet and it works fine.  On a back wall, the character won't face the object with the same code.  This is with an actor3d that otherwise seems to be working fine.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: TurnTo(this) not working on back wall
« Reply #1 on: June 03, 2008, 10:05:29 AM »

It's important to notice that TurnTo method turns to the base point of the target, i.e. the top-left corner, unless you use a sprite with a different "hot spot" placement. Could that be the problem?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: TurnTo(this) not working on back wall
« Reply #2 on: June 03, 2008, 03:16:04 PM »

This isn't even in the right neighborhood.  Most of the time he points down instead of up and he's way lower than the object, which is just a square.  If it was even ball park, I wouldn't care really, but it looks weird when he has his back to the object.  I'm using two region entities and I can't think of any thing different about them other than one is on the west wall and one is on the back wall.  The one on the west wall works fine no matter where I position the character, the one on the back wall is strange.
Logged
 

Page created in 0.272 seconds with 22 queries.