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. Dismiss Notice

"Ballpoint pen" toggle effect in 2d

Discussion in '2D' started by chasethomas, Dec 22, 2015.

  1. chasethomas

    chasethomas

    Joined:
    Oct 16, 2015
    Posts:
    17
    Hi all,

    I'm trying to make a toggleable effect on a tree sprite (made up of three different sprites... top triangle, middle triangle, bottom trunk). When a player touches the tree, I'd like it to compress slightly, then spring open... similar to the effect when pressing the top of a ballpoint pin http://ecx.images-amazon.com/images/I/316cGqKsgcL._AC_UL320_SR258,320_.jpg

    Any thoughts on the best way to do this? I've been trying Spring2d, but it doesn't seem to work quite right... plus I'm not sure how to make it stick in the expanded state, then revert to the original state.

    Thanks!
     
  2. chasethomas

    chasethomas

    Joined:
    Oct 16, 2015
    Posts:
    17
    Decided to just do it with animation, that seems to work fine. Any other ideas are welcome!