playMaker

Author Topic: Working with iTween... [SOLVED]  (Read 3425 times)

Stardog

  • Playmaker Newbie
  • *
  • Posts: 5
Working with iTween... [SOLVED]
« on: December 08, 2011, 08:43:39 AM »
Are there any tips for working with iTween?

I've had a few issues with iTween that I managed to solve by using a "Stop iTweens" state as a go-between.

This issue was specifically with "Look To" where I was getting "GameObject has been destroyed" errors. I'm guessing because the iTween wasn't finished before the state changed. The error only shows up when stopping the game.

The FSM is on an NPC will look at you when you hover over him. It's something do with the Look To in the Idle state, which makes all NPC's look at a default point. When disabled, there is no error, and no error when using Look Update.

Here's the setup:
« Last Edit: December 11, 2011, 11:38:24 AM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Working with iTween...
« Reply #1 on: December 10, 2011, 11:34:04 PM »
Can you email me a simple project that shows the problem? Thanks!

Stardog

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Working with iTween...
« Reply #2 on: December 11, 2011, 11:12:51 AM »
Now I can't replicate it and it works fine when I re-add the Look To's. It was probably my own issue with the global Player variable or something. Strange  :-\

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Working with iTween...
« Reply #3 on: December 11, 2011, 11:38:07 AM »
I'll mark this solved for now, but if it reoccurs just reopen the thread. Thanks!