发新话题
打印

请教

请教

用lingo编一个单击某物体时,物体放大。怎样能实现渐变的放大?

TOP

请教

在改变物体大小的同时改变它的透明度。
可以如下:
repeat with a = 0 to 100
    set "物体".不透明度=a
end repeat

TOP

请教

property pblend,prect,pyes
on beginsprite me
  prect=sprite(1).rect
  pblend=sprite(1).blend
  pyes=0
  
end
on mouseenter me
  
  sprite(1).blend=0
  pyes=1
  
end
on mouseleave me
  sprite(1).rect=prect
  end
on exitframe me
  if pyes=1 then
   
    sprite(1).blend=sprite(1).blend+1
    sprite(1).rect=sprite(1).rect+rect(-1,-1,1,1)
   
    if sprite(1).blend=100 then  pyes=0
   
   
  end if
end
on endsprite me
  sprite(1).rect=prect
  end

TOP

发新话题