Detect If Character And Object Are The Same Color

Discussion in 'Buildbox General Discussion' started by lazerDev, Jan 1, 2019.

  1. lazerDev

    lazerDev Boxer

    Joined:
    Dec 24, 2018
    Messages:
    12
    Likes Received:
    1
    can anyone write me a node in with 2 functions
    1) for when character collides with an object the same color as itself
    2) for when the object collides with any other color

    thanks!

    for example, if I want to make a game like color switch and I want the character to be defeated after colliding with a color other then the same as itself.
    if there is a way to do this without color detection please let me know, but so far I see very little options for color based games on buildbox :(
     
  2. MickMick93

    MickMick93 Boxer

    Joined:
    Jul 1, 2017
    Messages:
    35
    Likes Received:
    12
    But color switch was made on Buildbox, so it is possible
     
  3. lazerDev

    lazerDev Boxer

    Joined:
    Dec 24, 2018
    Messages:
    12
    Likes Received:
    1
    Only the first version of color switch was made with buildbox, today's version is impossible to develop on buildbox because bb don't support most of color switch functions

    @NikRudenko or @TreySmith correct me if I'm wrong
     
  4. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    In BB2, colorswitch uses workarounds so that it looked like it was depended on the colour. However, it can be done in BB3 by using a code to see if the colours match
     
  5. lazerDev

    lazerDev Boxer

    Joined:
    Dec 24, 2018
    Messages:
    12
    Likes Received:
    1
    Can anyone please put up the code or node file here?

    I see a lot of people looking for a feature like this
     
  6. blackiyto

    blackiyto Boxer

    Joined:
    Jan 5, 2019
    Messages:
    25
    Likes Received:
    1
    Does the color switch?
     
  7. blackiyto

    blackiyto Boxer

    Joined:
    Jan 5, 2019
    Messages:
    25
    Likes Received:
    1
    Last edited: Jan 16, 2019
  8. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    I can help you achieve what you want, but it is a somewhat complicated process.
     

Share This Page