Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Play those sprites on touch.

Discussion in '2D' started by Witcher_CA, May 10, 2015.

  1. Witcher_CA

    Witcher_CA

    Joined:
    May 5, 2015
    Posts:
    19
    So , i'm having 2 sprites , 1 - a gift box , 2 - a spring fist coming out . What I want is , when the player press the 'E' key while he touch the gift box , the second sprite - "spring fist coming out" will come and replace the gift box .And if the player touches the object , his health will be reduced by 30% . The spring fist sprite will be continuously playing and not be going back to the gift box sprite .

    Heres a rough sketch



    Will be good if anyone explains what to do .

    Hope to see from you ,
    (W)itcher
    Thank-you
     
  2. Witcher_CA

    Witcher_CA

    Joined:
    May 5, 2015
    Posts:
    19
    Anyone ?
     
  3. Witcher_CA

    Witcher_CA

    Joined:
    May 5, 2015
    Posts:
    19
    Please , anyone help me . [EDIT] its a long time .
     
    Last edited: May 10, 2015
  4. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    your image isn't showing up