How Do I Add A Filter Every Time I Kill An Enemy

Discussion in 'How Can I...?' started by Big Bill, Jan 15, 2020.

  1. Big Bill

    Big Bill Boxer

    Joined:
    Dec 4, 2019
    Messages:
    14
    Likes Received:
    0
    So I wanted to add a filter every time I kill an enemy for a short period of time, and vice versa. Kinda like GTA V style.
     
  2. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    135
    Likes Received:
    70
    Can you explain more, what do you mean by filter?
     
    Miko Buildbox likes this.
  3. Big Bill

    Big Bill Boxer

    Joined:
    Dec 4, 2019
    Messages:
    14
    Likes Received:
    0
    A quick flash of yellow, blue, etc
     
  4. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    135
    Likes Received:
    70
    Make filter asset. No physics, scale it up, set right opacity. Add delay node (0.1s or something like that) and remove node.
    Then spawn it, when desired action is triggered.
     
    Miko Buildbox likes this.
  5. Big Bill

    Big Bill Boxer

    Joined:
    Dec 4, 2019
    Messages:
    14
    Likes Received:
    0
    I know this might sound a bit stupid but where might you find a filter asset, I'm pretty new still yet
     
  6. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    135
    Likes Received:
    70
    You make it. If it is 3D game, import cube from assets library. If it's 2D game, import rectangle..
    Set it's color to red or blue or what filter color you like.
    Change opacity, so you can see through it, and creates filter effect.
    In 3D model / Animation node, change scale to 50 or something, so it covers whole screen. And into that asset, add delay node (0.1 seconds should be okay), and connect remove node with delay node.
    In actor's or enemy node map, use spawn node, to spawn filter asset. Probably need to connect spawn node with if collide node or defeat node.
     
    Miko Buildbox likes this.
  7. Big Bill

    Big Bill Boxer

    Joined:
    Dec 4, 2019
    Messages:
    14
    Likes Received:
    0
    One last quick question. Where do you find opacity in Buildbox, also a stupid question
     
  8. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    135
    Likes Received:
    70
    If you open asset's color option (to set its color), if you're using PC, then you can see "Alpha channel" field. Lower its value to reduce its opacity. In mac, it is named as "Opacity".
     
    Miko Buildbox likes this.

Share This Page