Scroll
Hola y antes q nada gracias por tu ayuda, estoy empezando a programar con lingo y estoy atascada, tengo un codigo de scroll pero cuando lo intento utilizar con otras imagenes mias me da error en la linea:
p_list=]¬ y la siguiente, te envio el codigo.
Gracias otra vez ScrollSpite (global)
-- Copyright © 2000, ZZP Online, LLC. Free use for readers of Director Online's "The Multimedia Handyman". Visit Director Online at http://www.director-online.com.
property pMyStartV -- initial locV of the thumb sprite
property pMyStartH -- initial locH of the thumb sprite
property pMyGroup -- group name
property pSprite -- this sprite
global gScrollV -- amount scroll has been incremented Vertically from initial value
global gScrollH -- amount scroll has been incremented Horizontally from initial value
on getPropertyDescriptionList
p_list = [¬
#pMyGroup: [ #comment: "group name:"¬
#format: #symbol,¬
#default: #alpha]]
return p_list
end
on beginSprite me
pSprite = sprite(me.spriteNum)
pMyStartH = pSprite.locH
pMyStartV = pSprite.locV
end
on scrollH me, group
if pMyGroup = group then
pSprite.locH = pMyStartH + gScrollH[pMyGroup]
end if
end
on scrollV me, group
if pMyGroup = group then
pSprite.locV = pMyStartV + gScrollV[pMyGroup]
end if
end
on tellGroup me
return pMyGroup
end tellGroup
p_list=]¬ y la siguiente, te envio el codigo.
Gracias otra vez ScrollSpite (global)
-- Copyright © 2000, ZZP Online, LLC. Free use for readers of Director Online's "The Multimedia Handyman". Visit Director Online at http://www.director-online.com.
property pMyStartV -- initial locV of the thumb sprite
property pMyStartH -- initial locH of the thumb sprite
property pMyGroup -- group name
property pSprite -- this sprite
global gScrollV -- amount scroll has been incremented Vertically from initial value
global gScrollH -- amount scroll has been incremented Horizontally from initial value
on getPropertyDescriptionList
p_list = [¬
#pMyGroup: [ #comment: "group name:"¬
#format: #symbol,¬
#default: #alpha]]
return p_list
end
on beginSprite me
pSprite = sprite(me.spriteNum)
pMyStartH = pSprite.locH
pMyStartV = pSprite.locV
end
on scrollH me, group
if pMyGroup = group then
pSprite.locH = pMyStartH + gScrollH[pMyGroup]
end if
end
on scrollV me, group
if pMyGroup = group then
pSprite.locV = pMyStartV + gScrollV[pMyGroup]
end if
end
on tellGroup me
return pMyGroup
end tellGroup
1 Respuesta
Respuesta de pliberal
1