Hey there guys,
I'm currently making a short game named Spaceship Superstars, and it's just a simple top down shooter game. I wanted to experiment a bit with darkness, so after a couple of tests I ended up making a sprite that was just pure black with a bit in the center erased, and pinned it to the player. This ends up giving me a sort of spotlight effect and works fine, but the player also fires out blue projectiles that I decided I want to have light attached to as well.
<img src="http://i.imgur.com/SpWwMqS.png" border="0" />
This is a shot showing what it looks like and showing one of the projectiles on screen fading into the shadow. I realise that in order to make it work as i'd like, I would presumably have to change the method i'm using to create the darkness at the moment. Unless I can do some trickery with layers that I don't know about yet, that is.
What I was thinking, and I have no idea if this is possible, would be to put some sort of ring of transparency around the bullet projectile that only affects one layer, making it so when it passes over the darkness it masks the area it's travelling over, but I don't know how to do this, or if it would end up affecting all the layers rather than just one.
I have no clue, really. TLDR; I want to make the bullets have a light source, is this possible?
Thanks for any help.