GameSalad

Howdy, Stranger!

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

Irregular shape bounding box

floatingwoofloatingwoo Los Angeles, Calif.Posts: 393Member

Iv'e been digging around in the forum and haven't found quite what I'm looking for on this...say I have a character falling down a hole...

he's bumping along colliding with the sides of the hole and there are tree branches or roots (like hands) sticking out every now and then.

Is there away to edit the bounding box around something like a branch so I can get a more convincing interaction with my Character?

Comments

  • Braydon_SFXBraydon_SFX Posts: 8,960Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee

    No, custom collisions in GS is not possible right now. Youd have to do a work around and drag more actors on the scene to position them to look like branches. They can be invisible, and just have your character collide with them

  • floatingwoofloatingwoo Los Angeles, Calif.Posts: 393Member

    Right Ok might take some work but I'll try it.Thanks

  • floatingwoofloatingwoo Los Angeles, Calif.Posts: 393Member

    http://forums.gamesalad.com/discussion/70967/change-the-size-of-a-collision-box

    I found this post in the forums it looks like the best way to go...

  • willkeslingwillkesling Posts: 123Member, PRO

    You could make a straight branch that could randomly spawn other vertical branches off of it and get the desired collisions. This would also mean the branches could be different each time the player runs the level.

    Let us know how this works.

    I have a game where a character swings a sword and was getting a similar issue. So what I did is I made he sword a separate object. The player swings their sword ( animation frames ) at the same time I spawn the sword for a very short time. The result is I can use the spawned sword for the collision detection ( the sword has a smaller surface area than the player actor ) thus is somewhat of a work around to our circle or square collision shape challenge.

Sign In or Register to comment.