عزیز دل برادر از کد ذیل استفاده بفرمائید
property spriteNum
property pShowLocH
property pShowLocV
property pVisibility
on beginSprite me
if not( pVisibility ) then hide me
end
on Hide me, immediateUpdate
set pVisibility = FALSE
set the locH of sprite spriteNum to -10000
set the locV of sprite spriteNum to -10000
if ( immediateUpdate ) then updateStage
end
on Show me, immediateUpdate
set pVisibility = TRUE
set the loc of sprite spriteNum = point( pShowLocH, pShowLocV )
if ( immediateUpdate ) then updateStage
end
on SetLoc me, newLocH, newLocV
set pVisibility = TRUE
set pShowLocH = newLocH
set pShowLocV = newLocV
end
on GetVisibility me
return pVisibility
end
عید بر شما مبارک