Creating a "spotlight effect" with multiply?
I want to create the so called "spotlight effect" (not the psychology one :P) in Gamesalad. What I mean is that I want everything else in the background to become black (I can put a black actor on top) and an "invisible circle" to appear around an actor in the scene. So, basically, only the actor and a small portion of the actor become visible. Is this possible?
If I'm unclear just tell me and I'll try again.
Thanks for the input!
If I'm unclear just tell me and I'll try again.
Thanks for the input!
Best Answers
-
gyroscope I am here.Posts: 6,598
Hi @master200012
One way I can think of doing this is to create a black background in Photoshop or similar, making it the size of your screen area.
Then in the middle delete a circle area, (making it a transparent area) maybe with a vignetted edge, i.e a bit fuzzy fading in to the black, to simulate the spotlight fading at the edges. Make sure the circle area is about half of the size you actually need.
Bring it into your project, and place it on top of your scene, centred to the middle of the screen. Double its size in the actor's attributes. Check it out with the following in its Rules:
When touch is pressed
Constrain attribute self.Position.X to game.Touch1.Position.X
Constrain attribute self.Position.Y to game.Touch1.Position.Y
Hope that sorts it for you.""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
-
tenrdrmer Posts: 9,934
@gyroscope. Thats basically what FMGs demo is except the overlay image has to be gigantic due to the effect needing to be anywhere on the screen. Theres a perfectly good image in the demo you are free to use. -
gyroscope I am here.Posts: 6,598
@tenrdrmer
Hi Aaron, thanks, I've just checked out FMG's demo, it's basically the same as my suggestion, which is nice to know!
Good comment about the size having to be twice as big as the screen area... :-)
@master200012 : in my answer, I suggested doubling its size in the actor's attributes: this would be for an iPad. But for an iPod or iPhone, you can bring in the black background (with its transparent hole) the actual double size needed, if you wanted, as this doesn't exceed 1024 x 1024 pixels.""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers