hi all,

I'm almost there!

I've been trying to move an object
from on side to another and at the
same time change its size. I put it
into one global(if I put into 2
globals it works, but one action at a
time) , but the problem is that when
one of the conditions is satisfied the
repeat while stops, for example if the
size of the image reaches its size
then the image doesn't go to the
position especified, or vice versa,
have a look at the global bellow:

the global

ON move3

 global gLogo,gLogoh,gLogov,m


 if
sprite(gLogo).loc<point(gLogoh,gLogov)
and sprite(gLogo).width<m then

  repeat while
sprite(gLogo).loc<point(gLogoh,gLogov)
and sprite(gLogo).width<m

sprite(gLogo).loc=sprite(gLogo).loc+1
             updatestage

sprite(gLogo).width=sprite(gLogo).width
+ 1
       updatestage
        end repeat





 else

  if
sprite(gLogo).loc>point(gLogoh,gLogov)
and sprite(gLogo).width>m then
       repeat while
sprite(gLogo).loc>point(gLogoh,gLogov)
and sprite(gLogo).width>m

sprite(gLogo).loc=sprite(gLogo).loc-1
           updatestage

sprite(gLogo).width=sprite(gLogo).width
- 1
           updatestage
         end repeat
     end if
 end if

end


on the button

on mouseUp me

 global gLogo,gLogoh,gLogov,m

 gLogo=2
 gLogoh=338
 gLogov=363
 m=400

 move3


end

tks
Nica




 
__________________________________________________________________________
E-mail gr�tis BOL com antiv�rus! Fa�a j� o seu!
http://www.bol.com.br



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to