3 Replies Latest reply on May 3, 2011 3:23 PM by pbuddy12345

    Go to marker

    pbuddy12345

      I have a "Play" button and a "Scores" button both of which have a different behaviour attahced to them.  One of them includes:

       

      on mouseUp me

       

      go "HighScores"

       

      end

       

      and the other includes:

       

      on mouseUp me

       

      go "Loading Screen"

       

      end

       

      But everytime I click the play button it takes me to the highscores screen instead?!  It only works when I remove the other behaviour but I need them both.  Any ideas? 

        • 1. Re: Go to marker
          jchunick Level 2

          it sounds like you have two behavior scripts attached to your play button. Check the Behavior tab on the Property Inspector... if that's the case then select the offending script and click the 'minus sign' to remove that behavior from your button sprite.

          • 2. Re: Go to marker
            Production Monkey Level 3

            You only need one "go marker" behavior.

             

            --  go marker behavior

             

            property  pMarker

             


            On GetBehaviorDescription me
              return "go marker behavior."
            end GetBehaviorDescription

             


            On GetPropertyDescriptionList me
              Props = [:]
              Props[#pMarker] = [#default:#next, #format:#marker,  #comment:"Pick a marker"]
              return Props
            end GetPropertyDescriptionList

             


            on mouseUp me
              go(pMarker)
            end

            • 3. Re: Go to marker
              pbuddy12345 Level 1

              Haha as simple as that, never even thought to look there thanks