Make a Light
JoshKahane
Member Posts: 470
Hi
I was wondering if it was possible in GameSalad to make a light? I was thinking you would do it with a particle behavior or something, but I don't know. Is it possible? Thanks.
I was wondering if it was possible in GameSalad to make a light? I was thinking you would do it with a particle behavior or something, but I don't know. Is it possible? Thanks.
Comments
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Badooom-TSSH!
You've been a great crowd! I'm here all week folks! Try the veal, it's delicious etc etc
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
The problem with that is that the hole where you can see through is set in a big image, and adding new 'light sources' will not make more areas viewable.
So currently you can not blend colors to brighten a room. Only darken everything else around it.
Or... I can't remember but you can adjust transparency i believe of an actor. What about having your normal background, then a black actor right above it. Somehow make it so when you move your character it would make the black part transparent, so the real background would show. Again just theory, not sure if this is presently possible or not.
Anyone else have any ideas?
Just like that, except, where it is black on the above game, I want it a bit more transparent. So would I make an actor like SuperNES said? Then make that actor follow over the top of my character actor?
Ignore my first response. You can make a light colored actor and change the transparency of that , but not sure how good that would look.
Adjust the alpha on the shadow actor as necessary.
Well I'm not a genius,but what runs in my mind is what Supernes said,but a little different.
O.K Your room is black with a light in the meddle:
Layer 1 = black background
Layer 2 = Player
Layer 3 = Light-(like a switch {with overlay setting and Transparent masking}
Player could overlap with light / when it passes.
While the player overlap with Light; the light could turn bigger with animation to make it bigger/brighter and after overlap; animation to go back to the light 1st frame.
I might be wrong but this the way I could think of. my problem would be in how to code it.
This really hurt me just thinking about it. LOL or maybe I don't know what I'm saying.
A better shadow effect can now by done by using a gradient image with the 'multiply' blending mode.
For more information on blending/compositing modes available in GameSalad, see:
http://gamesalad.com/wiki/interface_reference:actor_attributes#graphics