Swap Textures On An Object?

Discussion in 'How Can I...?' started by Valan, Feb 9, 2021.

  1. Valan

    Valan Boxer

    Joined:
    Dec 10, 2019
    Messages:
    12
    Likes Received:
    2
    Hi all,
    I have a game where the main character flies through a tunnel.
    I want the tunnel to change textures for each scene.

    How do I accomplish this?
    Thanks
    Valan
     
  2. Nicki

    Nicki Boxer

    Joined:
    Feb 26, 2020
    Messages:
    9
    Likes Received:
    9
  3. Valan

    Valan Boxer

    Joined:
    Dec 10, 2019
    Messages:
    12
    Likes Received:
    2
    Thanks, Nicki Ill try it.
     
    Nicki likes this.
  4. iblicense principal

    iblicense principal Boxer

    Joined:
    Aug 26, 2020
    Messages:
    38
    Likes Received:
    11
  5. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    This can be come, without code. it just depends how you want to do it. You can soon a state machine and connect it to "set color" another. Could you give some more details on how you wish to have the colors changing?
     
  6. Valan

    Valan Boxer

    Joined:
    Dec 10, 2019
    Messages:
    12
    Likes Received:
    2
    Hi Josh,
    I want the whole texture to change, i.e. from a wood texture to a stripe texture.
     
  7. Valan

    Valan Boxer

    Joined:
    Dec 10, 2019
    Messages:
    12
    Likes Received:
    2
    Thanks for the suggestions.
    Finally, I used a state machine. The input is a Received, and the output is a 3d Object(same tunnel with a different texture).
    When an object is struck, a message is sent, the tunnel object receives it, and the state machine changes the 3d object.

    This all looks like the tunnel's texture changes when objects are hit.
     

Share This Page