Hurdles in Dark

Discussion in 'How Can I...?' started by contatct, Apr 13, 2016.

  1. contatct

    contatct Boxer

    Joined:
    Feb 17, 2016
    Messages:
    38
    Likes Received:
    6
    I wanto implement a game mode where my hurdles will be in dark and only when character with light source on it reaches near them they become visible

    just like cave mode in color switch (see attacment luminous.png )

    is it possible in buildbox ?
     
  2. reegannaidoo

    reegannaidoo Boxer

    Joined:
    Dec 11, 2015
    Messages:
    87
    Likes Received:
    27
    Hey,
    I think you can, in Colour Switch the light source is linked to the character in CAVE MODE.
    Im guessing you can add the light effect, with "cast shadow"ticked and use a blank object/image to block the light and then use the wake up function on the object to move away once the character gets close to it.
     
  3. vedavyas_kadudas

    vedavyas_kadudas Boxer

    Joined:
    Mar 21, 2016
    Messages:
    28
    Likes Received:
    0
    Attach a invisible box to your character and attach a light to your invisible box. After linking them in the order mentioned, move your light on top or in front of your character.
     
  4. JoeWilson

    JoeWilson Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    171
    Likes Received:
    65
    I've tried this, it's still not fixing the issue for me. I have a character with a light attached, it will cast shadows on all object in the world in preview mode and in the Xcode simulator.. but when you load the game on the device, the shadows are not rendered.
     
  5. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,024

Share This Page