Esperar x segundos en un frame usando lingo. Octubre 4, 2009
Posted by EROS in scripts.trackback
Colocar este comportamiento en el canal de script del score, definir la cantidad de segundos que se desea esperar y definir a donde ir luego de vencido el tiempo, creado por Chuck Neal y tomado de mediamacros.com
–Copyright 2000 Chuck Neal
–chuck@mediamacros.com
–If you find this code helpful, send me an e-mail and let me know.
property theTime, howLong, goWhere
on getPropertyDescriptionList me
p_list = [:]
p_list.addProp(#howLong, [#format : #float, #default : 2, #comment : "How long in seconds to wait:"])
p_list.addProp(#goWhere, [#format : #marker, #default : #next, #comment : "What marker to go to after time has elapsed:"])
return p_list
end
on exitFrame me
if theTime = void then
theTime = the timer + (howLong * 60)
go the frame
else
if the timer < theTime then
go the frame
else
go goWhere
end if
end if
end
on getBehaviorDescription me
return "Place this on a frame script and assign it a number of seconds and a marker. It will loop on that frame until the time is up and then jump to the specified marker."
end
Comentarios»
No comments yet — be the first.