Right, I'm wanting an effect where darkness surrounds the player but has only a small area of the screen around the player which is actually visible, the screen would gradually darken out the further away from the player. What would be a good way of doing this?
Tell 'em Babs is 'ere...
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
27th September, 2007 at 23:24:42 -
I'd almost call that digesting the player if the throat didn't expand at the top.
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
Make a black active, the size of the window. Then (assuming that you're using MMF2) just edit its alpha channel and make a smooth, fading transparent circle in the middle of it. Turn off "follow playfield" in object properties, and you're done.
Alpha channel basically means per-pixel semitransparency. Just click the "transparency" button, as shown in Phizzy's screenshot, and select "alpha channel". Then click "show" and "edit", and start editing the alpha channel. Black is transparent, white is opaque and everything there between is semitransparent.
Make a black active, the size of the window. Then (assuming that you're using MMF2) just edit its alpha channel and make a smooth, fading transparent circle in the middle of it. Turn off "follow playfield" in object properties, and you're done.
I did something similar but used a large black rectangular active object with a transparent hole cut out of the middle that always follows the hero around. It doesn't fade though. You need to make sure the blackness is larger than the frame though. If your guy goes all the way to one side you might see a sliver of light at the opposite edge of the screen (the end of the black object).
I need to try alpha channel objects still. What are they good for in general? Upgrades to active objects?
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Originally posted by Del Duio
I need to try alpha channel objects still. What are they good for in general? Upgrades to active objects?
What you see in the above screenshot is an ordinary active object. Alpha channel is not a separate object, it's more of a tool actually. What's it good for? Well, it's just a graphical gimmick, really. But it's good for antialising sprites, and you can get some pretty nice effects with it too.
I'm using the overlay object (plus actives with ink-effects and alphas) right now for my Resi 4 'remake' to make something similiar.
I've managed a pretty sweet flashlight/line of sight effect, which sounds just about identical to what you are talking about.