Author Topic: Bit of help with 3 Things  (Read 34445 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

Re: Bit of help with 3 Things
« Reply #30 on: June 07, 2007, 11:13:50 PM »
Glad to be of help  ;D
It helps that my title screen is very similar to what you're doing. I look forward to seeing your title screen!

I know it feels good to get it done...I was quite proud when I got my screen done...sounds silly, but it's true!

Offline troflip

Re: Bit of help with 3 Things
« Reply #31 on: June 08, 2007, 12:03:48 AM »
Doan/MI, you can leave out the "= cycles 20" thing by providing a reference back to the shimmerScript. That way you don't need to know how many cycles it takes.  When the cycler is done, it will call the cue method on shimmerScript, which will call changeState with the next state.

Code: [Select]
(instance shimmerScript of Script
    (properties)
    (method (changeState newState)
        = state newState
        (switch (state)
            )(case 1
                 (shimmer:setCycle(End shimmerScript))
            )(case 2
                 (shimmer:setCycle(Beg shimmerScript))
            )(case 3
                 (shimmerScript:changeState(1)) // make it all loop around forever!
            )
         )
    )
)
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline MusicallyInspired

Re: Bit of help with 3 Things
« Reply #32 on: June 08, 2007, 12:07:53 AM »
Ah nice! Thanks for that.
Brass Lantern Prop Competition

Offline Doan Sephim

Re: Bit of help with 3 Things
« Reply #33 on: June 08, 2007, 12:23:55 AM »
Good to know! I thought there was a way to do that, but I wasn't sure!

Offline MusicallyInspired

Re: Bit of help with 3 Things
« Reply #34 on: June 08, 2007, 12:24:46 AM »
BTW I've posted the demo in the KQ2SCI thread in the SCI games forum.
Brass Lantern Prop Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.045 seconds with 22 queries.