1 Reply Latest reply on Mar 16, 2009 6:05 AM by robdillon

    Text slide horizontal and blinking

    Level 7
      Hello:
      Can you give some samples of two effects for text:

      1.- move text horizontally
      2.- make blink the text (moving or not).

      Many thanks to all.


        • 1. Re: Text slide horizontal and blinking
          robdillon Most Valuable Participant
          Attach this behavior to the text sprite:

          property thisSprite, howFar

          on beginSprite me
          thisSprite = me.spriteNum
          end

          on getPropertyDescriptionList
          myPropList = [:]
          myPropList.addProp(#howFar,[#comment:"select the number of pixels to move:",#format:#integer,#range:[#min:-10,#max:10],#default:3])
          return myPropList
          end

          on exitFrame me
          sprite(thisSprite).locH = sprite(thisSprite).locH + howFar
          sprite(thisSprite).visible = not sprite(thisSprite).visible
          end