ive been through the tutorials and have no problem with adding views to my dialog boxes...(btw the tutorials are excellent!)...but in any event, i dont know how to set the views in motion there. ive tried to discover it by checking out the dying sequence because that view is animated, but i think i confused myself more than i found anything helpful.|
again, if this is a dumb question with a readily available answer in some obvious place, im sorry and i would love to be directed there...here is something like what i have coded:
(if(< (send gEgo:distanceTo(aMan)) 40)
#title "Titan Says:"
#icon 4 0 0
If you're talking about an animated view in the window box,|
sci0 might not support animated view in the window box.
sci1 or sci vga support animated view in the window box.
Peharps with a good scripting, you can do it with sci0 too.
im pretty sure it is possible because the death icon from the the samples is an animated view in a dialog box (i suppose they are really called "windows" huh?)|
but anyways, thanks!
Dialog boxes are a form of Window, yes, but there are many other types both in SCI, Microsoft Windows, and others.|
Anyway, look in the death script, it's got all the info you'll need for animated icons in dialogs.
"ive tried to discover it by checking out the dying sequence because that view is animated, but i think i confused myself more than i found anything helpful."|
i dont mean to go on, but i did take your advice before you gave it...i prolly need to be more exact when i write. i wouldnt bother you very smart people unless i tried all methods i could, because i know you all have better things to do than answer (i take it) basic questions from some (it should seem) fellow just getting into object oriented scripting...im simply dumbfounded on this one.
O.k. I'll help a little, |
Brian likes for people to find the answers themselves. So I won't ruin that for him, but look through the scripts you'll find one named "Dying" and in this script it starts off like this...
(instance public DyingScript of Script
(method (changeState newState)
(var mbResult, message)
= state newState
(if(== state 0)
= seconds 3
(if(== state 1)
The answer is in there.