Actor Shapes

DEGOMobileDEGOMobile Member Posts: 43
edited February 2012 in Working with GS (Mac)
Im working on a game like fast ball 2 but instead of a ball a car, theres a white block around it even when in my program i got rid of the background and made it transparent... any way to rid of the excess image? i bought this as a template and in the template there are custom shapes that dont have it but mine do... Please respond if you know away around this.
Shaka!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    The only collision shapes in gamesalad are square/rectangle and circle. For something like a car thats only going forward and back, you could have one rectangle to represent the front, hood, and the body back to the taillights. Then you can constrain a square on top the same size of the roof for the top collision. Then you wont have collisions in between the space above the hood and below the roof. Just tell anything you want to overlap or collide with it to do so on the collision actors, instead of the main car actor.
  • DEGOMobileDEGOMobile Member Posts: 43
    omg.... this is going to be hard, my dreams are ruined
  • DEGOMobileDEGOMobile Member Posts: 43
    are there any tutorials on this stuff?
  • DEGOMobileDEGOMobile Member Posts: 43
    and the car will be sideways like this, just an example
    http://t.co/vcXD6fXW
  • MotherHooseMotherHoose Member Posts: 2,456
    @DEGOmobile … you can not let your dreams be ruined!

    what graphics/image program are you using?

    my take:
    the image is not being save/exported with the transparent background
    (that is known as the Alpha channel)
    in a one-layer image … even if you make the surrounding area transparent … it may not save with a transparent BG
    so always add another transparent layer below the image

    aha!
    in checking the image you have posted on twitter: … it is a jpg … jpgs do not save in RGB with alpha channels
    you need to save you image as a png …
    -remove the white
    -crop your image
    -save your changes
    -import the png into GS

    @};- MH
  • DEGOMobileDEGOMobile Member Posts: 43
    @MotherHoose THANK YOU SO MUCH IT WORKED! But one more wuestion im putting in that picture of the car that worked and i cant change the wideness and heightness... It looks all smooshed... I see where on the actor i click size and change it, but nothing happens while in the game
  • MotherHooseMotherHoose Member Posts: 2,456
    did you change in the actorInstance on the sceneEdit ???

    or just the prototype in the actorPane on the Left ???

    if in sceneEdit should be correct size
    if in prototype … click on instance and in the attributePane on the left highlight Size and just below … click (Revert to Prototype)

    also verify that your image is 72 dpi
    you can verify size and dpi by double-clicking on image in ImagePane and that will open it in Preview.app …
    click Tools > Show Inspector and you can read that data/info in Preview's Inspector.

    @};- MH
  • SAZ_1SAZ_1 Member Posts: 397
    edited February 2012
    yea GS please add more collision shapes... the minimum should be triangle up to hexagon or octagon... seriously my current game will be hampered slightly by this and its such a small thing.
  • DEGOMobileDEGOMobile Member Posts: 43
    @SAZ_1 I know right! Its pretty $H1TTY
    @MotherHoose Ok thanks I'll try this when I get home from school!
  • CloudsClouds Member Posts: 1,599
    @SAZ_1

    "yea GS please add more collision shapes"


    PLEASEEEEEEE !!!
  • arcticsunrisearcticsunrise Member Posts: 159
    ah box2d collision shapes and custom polygons.....ive been asking for this since last year.. pretty sure this is coming in the 1.0 version - its a basic physics requirement and as they already use box2d adding the extras in shouldn't be a problem
  • DEGOMobileDEGOMobile Member Posts: 43
    @MotherHoose i'm trying to make my image (car) taller and wider, but i dont know how too
  • MotherHooseMotherHoose Member Posts: 2,456
    @DEGOMobile

    you want to scale your image …

    easiest for a newbie is to open your image in Preview.app
    go Tools > Adjust Size…
    leave the little lock locked and increase either the Width or Height by pixels or percent
    you change only one number (Width or Height) and the other will change in proportion to it.
    Save AS: carBigger
    import that to your GS project

    You can also change the Width and Height in GS but there you do each attribute separately
    and, of course you can scale in your graphics program.

    @};- MH
  • DEGOMobileDEGOMobile Member Posts: 43
    Ok will try in the morning :) thank you very much for taking the time to respond to me
Sign In or Register to comment.