[Newbies] RE: Welcome to the "Beginners" mailing list

K. K. Subramaniam subbukk at gmail.com
Thu Mar 12 08:17:54 UTC 2009


Pedro Pereira wrote:

> This is just my first try with it... just trying to figure it out for
> something else. I want to move a small picture called bolo (cake) to the
> mouth...
If you have two objects called Mouth with a object Food to the left of it
(on same Y), then you can try:
script: swallow1
   Test Food's x > Mouth's x
        Yes: Food's x decrease by 1
        No: stop script swallow1
            do message1

You could also experiment with "turn toward" and forward tiles to move Food
towards Mouth.

> than it would stop there for 1 minute, meanwhile it would show 
> some text, something like "food is shew and than continues is way"

script: message1
   Message1 show
   start script delay1min

For creating a 1-minute delay, paint an object called timer and use the
script: 
script delay1min (set tick rate to one per second)
   timer's heading increase by 1
   Test timer's heading < 60
        Yes: timer's heading <- 0
             stop script delay1min
             start script swallow2

> than I 
> would have that small picture, smaller
Use scalefactor tile to reduce size:
swallow2
  Food's scalefactor decrease by 0.1
  ...

HTH .. Subbu



More information about the Beginners mailing list