Syncing Actors together when actor is released

yna205@nyu.eduyna205@nyu.edu Member Posts: 49
edited October 2014 in Working with GS (Mac)

Hi,
Right now I have three buttons (actors), basically what happens is when I pressed and released the button (actor), it grows and interpolates to zero, so in other words it shrinks and then the scene changes. But I want the buttons to be synced so when any of the buttons are released all of them do their animation for when they're released. I want my scene to look fluent and smooth that's why. So when the scene is about change all the buttons shrink and disappear together.

Comments

  • jeezzcakejeezzcake Member Posts: 144

    Have you tried to make a global attribute ( let's say : game.shrink ) so when you touch an actor, set game.shrink to true ... every actor checks if game.shrink is true and if so, they shrink.

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @jeezzcake said:
    Have you tried to make a global attribute ( let's say : game.shrink ) so when you touch an actor, set game.shrink to true ... every actor checks if game.shrink is true and if so, they shrink.

    I've set a new global attribute in the scene screen for AllShrink to a "boolean" attribute. And then for my rule when touch is released I've set a change attribute for AllShrink to true. From there do I go into the other actors and do the same by putting the boolean as true under the other actor's for the released rule?

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    That's not exactly working. I have a boolean attribute and I put it under my touch release rule for an actor as true. How would I use the check attribbute. Do I make a new rule in other actors that if attribute AllShrink attribute is true, the actor shrinks?

  • jeezzcakejeezzcake Member Posts: 144

    Let's say you have a play button...
    Put a Rule that says : when touch is pressed change attribute game.shrik to true, then set another Rule that says : when game.shrink is true interpolate size.width, size.height to 0.

    In the other actors set this Rule : when game.shrink is true then interpolate (width,height) to 0.

  • yna205@nyu.eduyna205@nyu.edu Member Posts: 49

    @jeezzcake said:
    Let's say you have a play button...
    Put a Rule that says : when touch is pressed change attribute game.shrik to true, then set another Rule that says : when game.shrink is true interpolate size.width, size.height to 0.

    In the other actors set this Rule : when game.shrink is true then interpolate (width,height) to 0.

    Thank you man

Sign In or Register to comment.