Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6033281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:27:39+00:00 2026-05-23T05:27:39+00:00

Making a prototype for a platformer that uses moving and stationary light sources and

  • 0

Making a prototype for a platformer that uses moving and stationary light sources and encountering some tricky problems and just basically looking for some sort of workaround or alternate solution.

For my first idea I just used 2 masks, one for the background and one for an enemy, the background looks exactly like I want it to, but unfortunately as the light moves closer to and away from the enemy you can see through it to the background as you can see in the file below.

swf: http://efullick.com/light/light_test.swf

So then I thought that it might make more sense to keep the enemy and background constantly opaque and just mask out part of a big black layer of darkness that’s over top of it, and got about to this point;

swf: http://efullick.com/light/darkness_test.swf

So I’ve realized that obviously I’d have to reverse the mask so that instead of having it create a point of darkness it’d have a lot of darkness with a hole in it in order to make this approach work, but I’m not really sure how I’d do this effectively with multiple light sources.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:27:40+00:00Added an answer on May 23, 2026 at 5:27 am

    If you put enemy and background into one container with light mask applied to container, this should fix enemy appearance. And mask can be composed from masks on each light – their areas will be combined, but lighting will not add.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a prototype client & server so that I can understand how
So I'm using jqGrid with my mvc.net / Ling2Sql prototype site that I'm making
Recently making the switch from Prototype to jQuery , I am struggling with some
I'm making a simple prototype in HTML5 canvas, and want to basically draw a
I've been tasked with making a prototype web application, and i'm debating between using
We recently built a web app using Prototype, making a fair amount of use
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was
Making an adobe flex ui in which data that is calculated must use proprietary
Making UML sequence diagram in VS 2010RC I've observed that there is no activation
After making some changes in my models (eg. new field in a model and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.