3 Replies Latest reply on Jan 13, 2009 6:11 PM by katie_lostsoul

    Changing a Sprite

    katie_lostsoul
      Hello,

      I have a bug, and I've scripted it as a button:

      on MouseEnter me
      _player.cursor(280)
      end

      on MouseDown me
      _player.cursor(280)
      sprite(me.spriteNum).member=member("bug_btn_d")
      sound(2).play(member("bug_squish"))
      end

      on MouseUp me
      _player.cursor(280)
      end

      on MouseLeave me
      _player.cursor(0)
      sprite(me.spriteNum).member=member("bug_btn_n")
      end

      Now, if the user has already squashed it, I want it to remain squashed and not go back to its normal state. Is there a way to detect if the down state has already happened, and if so, disable the button?

      Thanks!