Flashlight

JamesBoucherJamesBoucher Member Posts: 433
edited November -1 in Working with GS (Mac)
Any way to simulate a flashlight? Or a car headlights? To have something come out of the dark and into the light.

Comments

  • synthesissynthesis Member Posts: 1,693
    Best way is to overlay a black mask actor with transparency where the light shines (a transparent hole through the black mask field). Basically you would be simulating shadows...not light. This in the only way I know how to do it since there is no "opacity masking" support in GS.

    TShirt Booths Labyrinth DeLuxe game is a good example...he has a darkness mode where you can only see a small area around the ball as you roll around the labyrinth. The rest of the board is obscured in the shadows.

    In short...you could simulate a view through a submarines periscope (via overlay masking)...but you can't simulate taking a random bite out of a cookie (via opacity masking).
  • firemaplegamesfiremaplegames Member Posts: 3,211
    I made a quick demo here:

    http://gamesalad.com/game/play/66586

    It does the same thing synthesis says...

    Joe
  • JamesBoucherJamesBoucher Member Posts: 433
    Thanks for the responses.
  • SingleSparqSingleSparq Member Posts: 1,339
    FireMaple - with the update 8.8 you can't import the larger graphic needed to do the flashlight trick (since it needs to be double the size for the area it's covering). How does one get around this now?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Oh, interesting...

    I guess you can make the graphic half the size, and have the actor double the size.

    I will update it when I get a chance later.
Sign In or Register to comment.