How Can I Scale An Object When Touched

Discussion in 'How Can I...?' started by Infectedspleen, Apr 30, 2020.

  1. Infectedspleen

    Infectedspleen Boxer

    Joined:
    Apr 30, 2020
    Messages:
    2
    Likes Received:
    0
    Hi All,

    I did some searching before hand and could not find any answers so i thought i'd ask.

    How would I go about scaling an object on the Y axis when I use touch pressed and then have the object restore to normal on release.
     
  2. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    70
    Use Scale Animation node, on pressed use Scale Animation to scale to 2 or whatever scale you want and on release use Scale Animation to scale back to 1
     
  3. Infectedspleen

    Infectedspleen Boxer

    Joined:
    Apr 30, 2020
    Messages:
    2
    Likes Received:
    0
    Thank you for the reply and advice. Works like a charm.
     
  4. Jackazoid

    Jackazoid Avid Boxer

    Joined:
    Sep 7, 2017
    Messages:
    176
    Likes Received:
    72
    You'll need nodes Is Touched, Touch and Scale Animation
     

Share This Page