playMaker

Author Topic: Game Object Changed?  (Read 2342 times)

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Game Object Changed?
« on: April 03, 2013, 11:41:53 AM »
I'm trying to setup an if/then scenario but I'm not sure what to use in the Actions list.

I just have something going on which is causing a sphere to get smaller and smaller. When the sphere reaches a certain size on the Y, I want the sphere to itween back to it's original size.

I thought maybe Game Object Changed would work? But I can't see where to set the Scale on the Y here.

Thanks a lot.

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Game Object Changed?
« Reply #1 on: April 03, 2013, 12:53:10 PM »
Use GET to put values into variables.

After you have the variable value stored, use COMPARE to choosed what to do IF that variable is larger, smaller, equal or whatever  ;D

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Game Object Changed?
« Reply #2 on: April 03, 2013, 01:08:53 PM »
Thanks for the reply.

Not sure what 'compare' or 'get' to use in this case...but I'll try a bunch.

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Game Object Changed?
« Reply #3 on: April 03, 2013, 02:07:46 PM »
I guess you are using a FLOAT variable type for the size of your sphere.

So, you must GET PROPERTY and drag the component of the sphere on it.
Select the parameter you want to get and  put the value in your variable.

Then you go with FLOAT COMPARE.