Need help again "Changing animation"

skippyskippy Member Posts: 106
edited November -1 in Working with GS (Mac)
i can't work it out, i want my main animation to stop then another one to start when it hits an invisible actor at a certain point in the game then when it hits another invisible actor further in the game i want the main one to come back again, how would i set this up please ?
I'm still learning with using attributes so i tend to try and change everything with behaviours but it doesn't always work.

Comments

  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Just out the top of my head:

    You can make two different actors(1,2) with the two different animations and say in the actor1

    If collides with actorX spawn actor2
    destroy

    in actor2 the same (spawning actor1 of course)

    ---

    You can also try in the actor1 makinga rule

    If collides with actorX, animate

    I don't know, if this would work. I never tried to change animation in the same actor, but the first one should work pretty fine.
  • design219design219 Member Posts: 2,273
    Both of Hun's suggested methods should work.
  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    Another way is to use the technique for switching animation states shown here in this demo Joe at FireMapleGames helped me with.
    Download the project and poke around to see how it works.
    Hope that helps some.
    Good luck with it!
    http://gamesalad.com/game/play/37013
  • skippyskippy Member Posts: 106
    Yep Hun Thankyou it works now, i didn't think to create another actor i just tried to animate the 2nd actor straight from within the main one with different behaviours and i couldn't get it to work cheers and @mike thats a nice animation you got there with eyes moving, feet swinging and all,
    good job mine's a bit amateurish compared to that :)
  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    Thanks!
    Glad you got a solution working. There's nothing worse than being stuck on something as you lose so much time.
    Hope it works out well for you!
Sign In or Register to comment.