Need Help !!!

Gianluz92Gianluz92 Member Posts: 5
Hi guys,

I am new to gamesalad and until now I have two big problems:

- I am trying to import an image with an irregular shape to use as an actor, but when the problem is that it also imports the background and so I end up having an image with a normal rectangular shape which I don't want. Any idea how I can do it correctly ?

- I don't know how to make my actor turn in the direction I want to go. Basically I want my actor to move like the snake in the Snake game with the only difference being that the actor stops when the key is not being hold down.

Please help me !!! Thanks

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Sounds like you need to get a little bit more of an understanding on how GameSalad works. I would suggest watching the youtube videos about using GameSalad, they are what taught pretty much every one here. And tshirtbooth's videos from GSHelper.com

    http://www.youtube.com/user/GameSaladCookbook/videos

    http://www.gshelper.com/

    As far as your image is concerned, it sounds like it's a .jpeg or other format that doesn't support alpha channels. Or a .png with a background color. You need to remove the background color. You can do this in Photoshop, or pretty much any image editing program. Can you post a picture of your actor that is giving you the trouble?
  • carlblanchetcarlblanchet Member Posts: 755
    edited October 2012
    Concerning the image, go on youtube, and search:
    "Image Transparency (name of program)"
  • goliathgoliath Member Posts: 1,440
    What program are you using to make your images?
  • Gianluz92Gianluz92 Member Posts: 5
    I am using photoshop and I have done the transparent background, so when I load the image it also loads the transparent background rectangle, but I don't want it. That is because I want to make my actor disappear when it collides with other actors, but in this way it is going to disppear when the transparent background rectangle collides with the other actor.
  • goliathgoliath Member Posts: 1,440
    edited October 2012
    @gianluz92

    Is your image cropped? Meaning, does your image go as close to the edge as possible? I know I made this mistake before and just thought that a transparent background was good enough.... Check out the example below (I put a star on black background for this):



    image



    image



    Notice the extra space around the one star and not the other.... I hope this helps and that I am making myself clear. Let me know if this helped.
  • Gianluz92Gianluz92 Member Posts: 5
    Is there any space between the star's arms ?
  • SingleSparqSingleSparq Member Posts: 1,339
    edited October 2012
    There is no polygon type of collision. Your actor is square whether there is an image there or not so it will still get hit.

    You can reduce this by choosing circle as the graphic type (see your actor attributes under graphics) OR using a method of making a separate actor that is smaller and invisible. This actor is your collision actor and the graphical actor is then made to follow its movement (or vice-versia) by using the constrain attribute to tell one actor to use the same x/y coordinates as the other. Essentially 2 actors moving at the same time one for collision the other for display
  • Gianluz92Gianluz92 Member Posts: 5
    ok, thx this was very useful
Sign In or Register to comment.