Images with transparent backgrounds in gamesalad
frankwashburn
Member Posts: 32
Hey all -
This should be super simple, and I apologize in advance for my ignorance..
But whenever I create an image and add it to gamesalad, and change an actor's image to that image, the actor always treats the empty space around my drawing as whitespace - so if I were to then drag that actor into a black Gamesalad scene, the actor would show the image encased in a big ugly white block.
Is there a way to tell Gamesalad "treat white as transparent", or is this a problem with the image itself? How do I delete this whitespace surrounding my images?
Thanks all,
Frank
This should be super simple, and I apologize in advance for my ignorance..
But whenever I create an image and add it to gamesalad, and change an actor's image to that image, the actor always treats the empty space around my drawing as whitespace - so if I were to then drag that actor into a black Gamesalad scene, the actor would show the image encased in a big ugly white block.
Is there a way to tell Gamesalad "treat white as transparent", or is this a problem with the image itself? How do I delete this whitespace surrounding my images?
Thanks all,
Frank
Answers
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
It will say based on : press transparent pixels under that it will say trim away: make sure all of them are checked then press ok.
After that save the image and your done
Hope I helped bilal
If you are still having troubles with the image, drop me a email I'll help you
Bilal_el-sayed@hotmail.com
Oh and don't forget if The image is round in gamesalad set collision to round, if it's a square set collision to square in gamesalad.
If you mean to have an actor have a collision area that is identical to the image, then no. The collision area will always be the size of the image, in a rectangular or circular shape. The best you can do is ensure there are absolutely no unnecessary transparent pixels on any side.
However, you can achieve a pseudo-shaped effect by having multiple actors, each representing one part of your image, and constraining them together appropriately (no easy task if the shape is at all complex) and then having the multiple collision points that provides. For example, you could have a person where one actor is his head, one for each of his legs, one for each of his arms and one for his torso. Keeping them all connected together would be no easy feat, though.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
it because I wanted my platform to be a tree vine which is obviously windy so at certain parts of the vine it looks like the actor is standing on nothing as I can't cut the transparent pixels any more because other parts of the vine are taller than others. I am just going to have to make my vine straighter.
Thanks for your help
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I had the same problem! i use photoshop! when you save your image you must check the box that says "save transparency". then import again the image in gamesalad.hope that works for you!
This thread is more than 2 years old. I hope he's figured it out by now.