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 3784748
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:25:26+00:00 2026-05-19T11:25:26+00:00

Hey all. I’m working on a little flash game, that is a top down

  • 0

Hey all. I’m working on a little flash game, that is a top down game. Your character is placed in a 600×800 pixel area, and you can use the arrow keys to walk around (in 8 directions). The object of the game is to avoid getting eaten by the enemy.

To make the game more interesting, I want to create a “fog of war” effect, so you can’t see the entire map, but rather, only a small area around your character. I’m thinking of keeping things very basic, what I’m looking for is the entire map to be blacked out, but a “circle of visibility” around your character. Like this:

alt text

Of course, as the player moves around the map, the circle of visibility would move with him. If there were obstacles, they would come “into view” as the player moved toward them.

I am not sure where to begin on implementing this feature. I’m using actionscript 3 and would really appreciate your help on giving me ideas on how to implement it! Thank you!

  • 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-19T11:25:26+00:00Added an answer on May 19, 2026 at 11:25 am

    You are looking to apply a “mask” to your visual. You then need to update the properties of that mask at runtime as your character moves around. Should be pretty straight forward.

    See this tutorial on masks for more.

    EDIT
    I realized I gave you a Flex example of using masks. It seems you are are trying to do this with Flash. The concept still applies… you want a mask. See this example or something similar for doing it in Flash.

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

Sidebar

Related Questions

Hey all i am in need of some help getting my code working correctly
Hey all I'm trying to make a 3d game in with 2d sprite characters.
Hey all i am in need of a little help with figuring out how
Hey all. I'm integrating a CLR/Assembly-based sproc replacement for an existing sproc that lives
Hey all, I've created a loading/splash screen that loads at the beginning of my
Hey all here are my tables i have placed in a DIV for each.
Hey all i have an XML file that i am trying to loop though.
Hey all, have a slight problem here. In CakePHP I have a controller that
Hey all, I'm having a little trouble packing a numpy.float32 using the struct.pack function.
Hey all, I'm trying to work on a simple script that takes a string

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.