on getPropertyDescriptionList me
list = [:]
addProp list, #pTicks, [#comment: "Number of ticks/frames to fade", #format: #integer, #range: [min: 5, max: 50], default: 5]
addProp list, #pBlendValue, [#comment: "Set visible of sprite", #format: #integer, #range: [min: 0, max: 100], default: 10]
return list
end
-- sets the sprite to your pBlendvalue
on beginSprite me
set pCurrentBlend = pBlendValue
sprite(me.spriteNum).blend = pCurrentBlend
end
on prepareFrame me
if pCurrentBlend <> 100 then
set blendIncrease = integer(100/pTicks)
set pCurrentBlend = pCurrentBlend + blendIncrease
if pCurrentBlend > 100 then set pCurrentBlend = 100
sprite(me.spriteNum).blend = pCurrentBlend
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA