...make a level dark so that a light on your character lights the level?

Discussion in 'How Can I...?' started by heathclose, May 2, 2016.

Tags:
  1. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    I tried putting a black light in the scene but that doesn't work, in fact, i don't know if lights have been black in the past, but in bb 2.0.1, every color but black works... how are games achieving a dark world with a light on your character lighting the way?
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
  3. andre_sprs

    andre_sprs Serious Boxer

    Joined:
    Sep 30, 2015
    Messages:
    844
    Likes Received:
    403
  4. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    Yah I've tried too......
     
  5. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    The trick is to have an object that has a circle cut into the middle to make the player and incoming objects visible. Hope this makes sense
     
  6. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    Ahhhh that's why if I move the light behind player, it's invicible.
     
  7. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    But how does that make the world around the character dark?
     
    AppNasty likes this.
  8. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    ive seen a few games do this and could never figure out how. oohhhhhh i think i just thought of how.......make lights everywhere but make the light color.....black lol. or make a few lights but their radius way up......bout to try...
    EDIT: WWWOOOORRRRKKKKSSS. Make black lights and choose CAST SHADOW.
    EDIT2: Ok, still tricky. But i know this has to be the way. Trying to figure out how to line it up just right....
     
    Last edited: May 3, 2016
  9. energizerlithium

    energizerlithium Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    110
    Likes Received:
    47
    I think that could be achieved by taking a BLACK png image and cutting a circle in the middle of it and adding it on top of the player in the animation editor(and expand the size of that image so the character in the middle shows); so you could achieve a complete blacked out effect around the world but make the character show.

    So when you walk around in the world everything within the radius of the cut out circle is visible (including character) but outside the radius everything is blacked out. That's one way I'd go about it, but I'm sure there are better ways to achieve the effect
     
  10. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    Could do that, then make it slightly transparent.....place black lights far off and it should look as if objects go from dark to light as you approach.
     
  11. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    @Machine Rises how did you achieve this look in the caves game mode? this is what I'm trying to accomplish...
     
  12. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    Have a huge black png image and cut a circle inside of it. To decrease image size just have a small black box and drag it into the animation editor to surround the box with the circle cut inside.
     
  13. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Hey @heathclose, you still have this issue?

    In GIMP you can create a mask image, like this (just get this one for testing):

    blackMist.png

    Note that the "white" circle is transparent, it is just that this website has white background that you see in here... OK, so grab it, then select your character and edit default animation, drag the image as Image. My image was not centric, so it can cover more on the front. Because of that you need to set X:256 / Y:0 on the character animation (assuming your main animation is at X:0/Y:0)

    So then here you go, you get an illumination effect in your game:

    Screen Shot 2016-05-09 at 4.57.55 PM.png
     
  14. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    Brilliant! Others were saying it but it was all mythical until I could see it... thank you so much for the example graphic, this really helped!
     
    INKY likes this.
  15. vedavyas_kadudas

    vedavyas_kadudas Boxer

    Joined:
    Mar 21, 2016
    Messages:
    28
    Likes Received:
    0
    This worked for me:
    Make a connection like this Character --> Invisible object (object in the bg color) --> Spot light...after connecting move the light ahead of the character
     
  16. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    can you post a pic of what this achieved?
     
  17. vedavyas_kadudas

    vedavyas_kadudas Boxer

    Joined:
    Mar 21, 2016
    Messages:
    28
    Likes Received:
    0
    I'm unable to upload pics I don't why but this would make the light move with the character. If you have a black background and a light along with the character you could achieve the same effect.
     
  18. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Use upload file...
     
  19. vedavyas_kadudas

    vedavyas_kadudas Boxer

    Joined:
    Mar 21, 2016
    Messages:
    28
    Likes Received:
    0
    I tired uploading both png and jpg. I get this message "There was a problem uploading your file."
     
  20. Bilz636

    Bilz636 Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    313
    Likes Received:
    182
    guys can i get a demo template how you done it? i want to see the settings how you guys adjust it?
     

Share This Page