Well, I spent some time with the code and I came up with a workable Print command with an animating icon! Something I had been wanting to do probably about 10 years ago lol!
But there is a small problem. The code isn't elegant and it kinda takes up some space. I believe there will be someone smarter who can do it better. But until Music gets back, this is what I did.
(instance testIcon of DCIcon
(properties)
(method (init)
(super:init())
(if(== gRoomNumberExit 540)
= cycler (End:new())
(send cycler:init(self))
)
)
)I added this code to the room that you wanted the animation widow to be in. Because you are referencing DCIcon Script, you need to add (use "DCIcon") at the top of the script.
I also tried removing some of this code like
(if(== gRoomNumberExit 540) in hopes of streamlining it, but when that was gone, the animation looped only once.
Ok, after that is added in there are 2 more things to do:
I added this to the handleEvent Method:
(if(Said('test/window'))
Load(rsVIEW 905)
(testIcon:init()view(905))
= message "What a wonderful day for a walk!"
(if(Print(
message
#icon testIcon
)
)
)
)You will need to put (var message) after the (method (handleEvent pEvent) also, so that it doesn't go crazy trying to compile an unknown variable.
Then when you type "test window" you will have an animating icon in your window! But with one small problem.
If your view has any transparencies, the animations will overlay eachother. So each frame cannot have any transparency, so that each frame will overlay the last without anything showing through.
Try it out! It works for me and now I get to think of new things to do with this design space
