GameSalad

Howdy, Stranger!

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

Transpancy = Empty Space. Possible?

mrmoggymrmoggy Posts: 5Member
Hi there, I'm wondering if it's possible to have the the transparent space in a .png image equate to empty space (meaning a object with gravity can fall through it). It seems when an object collides it'll do so with the total size of the image (transparency and all) and not just what is visible.

Thanks in advance :)

Comments

  • hrsmediahrsmedia Posts: 522Member
    I think you need pixel collision or something to do that. GS doesn't have that.
  • quantumsheepquantumsheep Posts: 8,188Member
    You could try making the collision a circle rather than a square. You'll find the option in the actor's attributes (double click an actor to see what behaviours it has - then look on the left at its attributes and it should be listed there).

    Hope that helps,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: http://www.quantum-sheep.com

  • FranzKellerFranzKeller Posts: 517Member
    That would be handy, but I bet it's a processor hog to use

    Still i'd like some way to offset the coordinate center of an object from it's collision area / visual shape

    it'd be great for doing grabbing arms, rotating objects etc.

    Just look at DS Scribblenauts for ideas! ;-)
  • mrmoggymrmoggy Posts: 5Member
    I was thinking it would be nice to be able to design a scene straight from photoshop, pixen etc and just drag and drop, would certainly save having to fiddle around with individual tiles/elements
  • FranzKellerFranzKeller Posts: 517Member
    Png 24 import is already pretty good, I've been using that, because the alpha (transparency) channel comes In perfectly

    Psd import could be cool, YET there are still a lot of decisons that the user must make manually - IE.what is a character, wall, floor, power up etc? Not to mention the actual game logic. Also this could take a lot of time to implement
  • reddotincreddotinc Posts: 653Member
    Have a look at this for a current more accurate way to make a collision overlay for an actor

    http://gamesalad.com/wiki/how_tos:gsc_how_to_have_more_then_one_hit_points

    // Red Dot Inc
This discussion has been closed.