Hi dear list,


I'm new with lingo and I have a project 
with 5 buttons, when I roll over
them I need an image to come from the 
right (with a tween motion), and
the actual image on the stage has to go 
off the screen to the left(with a tween 
as well). But they have to do this at 
the same time. it has to know which 
sprite is on the screen each time I 
roll over each buttom. I don't know how 
to start... Do you Know some example on 
the net?

My idea first was to roll them all like 
in a sequence so I used the locH of the
sprite but the problem is the distance 
between the first and the last button, 
the person will have to wait a sequence 
of images to pass in the stage in order 
to see the one he wants. 



thanks in advance
Alessandra


(ON movimenta2
  global 
plogo,logo,pcases,cases,ptecno,tecno,pp
rojetos,projetos
  
  if sprite(plogo).locH<logo and 
sprite(ptecno).locH<tecno and 
sprite(pcases).locH<cases and 
sprite(pprojetos).locH<projetos then
    repeat while sprite(plogo).locH<
logo and sprite(ptecno).locH<tecno and 
sprite(pcases).locH<cases and 
sprite(pprojetos).locH<projetos
      
      sprite(plogo).locH=
sprite(plogo).locH+40
      
      sprite(ptecno).locH=
sprite(ptecno).locH+40
      
      sprite(pcases).locH=
sprite(pcases).locH+40
      
      sprite(pprojetos).locH=
sprite(pprojetos).locH+40
      
      updatestage
       
    end repeat
    
  else
    if sprite(plogo).locH>logo and 
sprite(ptecno).locH>tecno and 
sprite(pcases).locH>cases and 
sprite(pprojetos).locH>projetos then
      repeat while sprite(plogo).locH>
logo and sprite(ptecno).locH>tecno and 
sprite(pcases).locH>cases and 
sprite(pprojetos).locH>projetos
        
        sprite(plogo).locH=
sprite(plogo).locH-40
        
        sprite(ptecno).locH=
sprite(ptecno).locH-40
        
        sprite(pcases).locH=
sprite(pcases).locH-40
        
        sprite(pprojetos).locH=
sprite(pprojetos).locH-40
        updatestage
      end repeat
      sprite(plogo).LocH=logo
      sprite(pcases).LocH=cases
      sprite(pprojetos).LocH=projetos
      sprite(ptecno).LocH=tecno
    end if
  end if
  end if
end)



 
__________________________________________________________________________
Preocupado com v�rus? Crie seu e-mail gr�tis do BOL com antiv�rus !
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