Need Help !!!
Gianluz92
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
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
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?
"Image Transparency (name of program)"
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):
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.
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