Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / lights in 2D?

Author
Message
someone namedlink
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: Dream Planet
Posted: 19th Aug 2004 00:46
can you make use of a light in a 2D game? like for example: you want a light following the mouse? is this possible?

DIV/DBP-coder
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 19th Aug 2004 03:18
Well, yes it's possible. There are a number of ways to do it. You could do it as a 3D fixed camera game that looks 2D, and use lights, and transparent objects.

To do this with 2D bitmaps you would need two screens. A hidden screen that is brighter than the front screen. Then you would need to paste a black cookie cutter over the part that you want to be the spotlight. Then grab the image, and the black will be transparent, leaving a spotlight effect. This can also be used for magnifying glasses, and shadows. I even made a glowing magnifying glass.

Login to post a reply

Server time is: 2025-05-19 13:48:30
Your offset time is: 2025-05-19 13:48:30