Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Animated collision shapes

GrimmGhostsGrimmGhosts Posts: 32Member, PRO

I am familiar with custom collision shapes but I do not know if there is a way that I could make an animated character with different custom collision shapes cycling with the animation. The animation is just a bat flying, not player controlled.


  • AlkaPPAlkaPP Posts: 167Member, PRO
    edited April 10

    I found the tutorial about animation custom shape from Gamesalad Guru

    I didn’t watch the videos because it’s not what I need right now but it would help you. The author is a very well known and high skilled GS developer.

    My Gamesalad Games On App Store:

    Greedy Chubby:

  • tatiangtatiang Posts: 11,660Member, Sous Chef, PRO, Senior Sous-Chef

    Collision shapes are actor-specific, not image-specific. Because of this, I don't think there's any built-in way you can use different custom collisions for a single actor.

    One thing I can think of -- and it's not terribly efficient -- is to destroy the actor and spawn an actor with the next frame's image. And repeat as needed for the full animation. Each actor (frame) would have its own custom collision shape.

    And watching through a bit of the video series above (there are several parts to that tutorial FYI, that's just part 1), it looks like that's the way @The_Gamesalad_Guru does it.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • rainwaterstudiosrainwaterstudios Posts: 159Member, PRO

    I did a few tests to see if I could get this functionality to work; @tatiang is correct in stating that you can't use multiple collision shapes for a single actor, and each frame would need its own actor with the associated collision shape.
    Here's an example I made of an animated rotating 3d cube using this method:

Sign In or Register to comment.