★★★ Soft Body Physics ★★★

UtopianGamesUtopianGames Member Posts: 5,692
edited November -1 in Working with GS (Mac)
Soft body physics in GameSalad.



Notice how the mass is evenly distributed depending how big the gaps are (the smaller the gaps the more the ball is stretched).

Also the squash effect after its hit the ground depends on speed and distance fallen.

Darren.

FREE Templates and GS Tools

Comments

  • gamedivisiongamedivision Member Posts: 807
    that is pretty god damn amazing darren wow
  • TheBoss_123TheBoss_123 Member Posts: 60
    I am left speechless
  • CaniohCanioh Member Posts: 200
    That is freaking sick!!!
  • old_kipperold_kipper Member Posts: 1,420
    In the words of ian Dury ' there ain't half been some clever ba*****s'. Looked at it for a few minutes and not sure if there is a tiny clue in there to how it's done. Your not spending enough time out on that bike and down the pub.

    Kipper
  • PhoticsPhotics Member Posts: 4,172
    I enjoy these posts from Darren, as it's fun to figure out how it was done.

    I think the trick is done with two main things...

    1 - The circle has no real graphics. It's just an outline. So, you don't actually see the actor spinning.
    2 - The width/height of the actor is being interpolated or altered somehow when the ball reaches a narrow passage, to let it fit through the spaces. This could be accomplished with invisible actors that tells the ball actor how to change size or it could be accomplished with a series of logic/math/tags/collision detection.

    The nice use of restitution gives the ball a bouncy effect. It's a clever combination of several GameSalad elements.
  • DreamLabDreamLab Member Posts: 2,127
    Wow this looks pretty cool. Is this for a new game? or is this going to be a template?
  • UtopianGamesUtopianGames Member Posts: 5,692
    There's some math involved with the size of the ball as i wanted it to look realistic when squeezed.

    The 1st gap you see is 56 pixels wide (saved to an integer) so i took the size of the ball actor (64) and took away the 56 which leaves 8 then added it onto the height which = 72 so it always looks correct...smaller the gaps more stretched it is.

    I have only 1 actor for the gaps that can be changed on the fly buy changing its size in the scene so when the ball approaches a new gap it already know by the size of the actor what to do.

    Darren.
  • GamersRejoiceGamersRejoice Member Posts: 817
    Dang that is awesome!
  • creativeappscreativeapps Member Posts: 1,770
    same effect like blobster greate work darren.
  • UtopianGamesUtopianGames Member Posts: 5,692
    creativeapps said:
    same effect like blobster greate work darren.

    Yeah, looks like that game is doing ok too.

    Darren.
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    nice work...

    now if you can just give it a rippling cape which flutters and moves as it falls and moves around... :-)
This discussion has been closed.