White background to show colors only when an actor is moving infront of it

zebualvizebualvi Member Posts: 9
edited November -1 in Working with GS (Mac)
Hi. I'm making a sidescrolling iPhone game about an aging rockstar. I'm thinking about using hand drawn backgrounds with a hidden colored replica. Idea is that a spotlight (an actor made up of a white circle) follows my main actor and when that spotlight shines on the background, only that part of the screen shows colors and rest remains dimly lit and colorless. Any ideas on how that's possible? Thanks.

Comments

  • zebualvizebualvi Member Posts: 9
    Hey all. I've attached a rough representation of the effect im trying to achieve.

    [IMG]http://img839.imageshack.us/img839/1746/52892565.png[/IMG]

    [IMG]http://img585.imageshack.us/img585/9527/55894401.png[/IMG]

    Appreciate any help on this. Thanks.
  • zebualvizebualvi Member Posts: 9
    Thanks a lot cmw333. I looked at the video and even used Flashlight Demo by firemaplegames.

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

    What it does is that the layer with flahlight effect follows main player. Mine is a little bit different, think of it as masking effect. My colored background layer is immovable and inside my spotlight actor. So when i move my spotlight actor, only that part which is inside my spotlight actor (which in this case is a circle), shows up and rest remains transparent. This way my background will still look like its hand drawn while colored effect will only show around my main character. I hope im making sense. Thanks.
  • cmw333cmw333 Member Posts: 76
    Hi again

    I'm new to gamesalad myself and to behonest I would ask one of the other members. I know the exactly what you want to achieve and could make it in photoshop but not in gamesalad. Really sorry I can't help you out, hopefully with a bit more practice I will have the skills to help others on the forum.

    Chris
  • zebualvizebualvi Member Posts: 9
    Really appreciate your help Chris. Thanks.
  • cmw333cmw333 Member Posts: 76
    Your welcome. How long have you been using GS for? I'm now into my 3rd week. Been using it everyday solid without a break. Learning so much but still can't get my head around some of the code especially the maths.

    Chris
  • zebualvizebualvi Member Posts: 9
    Me and my classmates started using it this semester in uni. Actually we have an almost finished game, just need to put enemies in some levels and put music in it. Otherwise its playable and looks nice but its not appstore nice. That's why i was trying to make this effect and see how it looked.

    Alvi
  • cmw333cmw333 Member Posts: 76
    I look forward to seeing the finished game when it's ready.. This is what im working on. It took some time to figure it out and not just a simple drag and drop. http://www.youtube.com/watch?v=hlX4r5TyQws

    I'm working on some education style games as my main job is teaching English here in China.
  • zebualvizebualvi Member Posts: 9
    It looks really nice and its a pretty brilliant idea in my opinion. Ill finish my game in a day or two but we won't publish it onto appstore just yet. Goodluck with your game.
Sign In or Register to comment.