Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: Wilco on April 06, 2003, 11:04:25 PM

Title: send gEgo:hide()
Post by: Wilco on April 06, 2003, 11:04:25 PM
Hey guys, I'm trying to hide my Ego from the screen while I'm playing an animation (i'm talkin about my game here, not "my" ego!  :P)
I do something like:

(if(Said('use/thingymabob')
  (theThing:
    init()
    setCycle(End)
    (send gEgo:hide())
  )
)

The animation 'theThing' contains my Ego doing something, so I need my actual Ego to disappear for the duration of the animation otherwise it seems that there are two Ego's. And of course I have all of this placed in my Roomscript instance, along with my other 'Said' lines.
When playing the game I get a 'bad spec' message come up on my screen.
Any suggestions (or criticisms? hehe)
Title: Re:send gEgo:hide()
Post by: Eigen on April 06, 2003, 11:30:51 PM
Here, try this:

(if(Said('use/thingymabob')
  (theThing:
    init()
    setCycle(End))
       (send gEgo:hide())
 )


But I'm not really sure when I was adding the word what type of word is "thingymabob". That might have something to do with that too. But this code seems to work.


-Eigen
Title: Re:send gEgo:hide()
Post by: Wilco on April 06, 2003, 11:54:13 PM
Isn't that pretty much the same as the code I posted?  ::)
By thingymabob I just meant a variable, I can't remember what I put in for 'use/whatever'. I thought 'send gEgo:hide()' should work. Hmmm, the error must be somewhere else.
BTW thankyou for always being ready to help out Eigen  :)


Title: Re:send gEgo:hide()
Post by: Chris Cromer on April 07, 2003, 12:33:59 AM
Nope that isn't the same code as you posted before, 1 of the parenthesis is in a different place.
Title: Re:send gEgo:hide()
Post by: Wilco on April 07, 2003, 12:41:49 AM
Ahhhhh! I see! I'll give that a shot, I didn't think to put the 'send gEgo:hide()' statment outside of the init() method. Thanks, I hope it works!
Title: Re:send gEgo:hide()
Post by: Wilco on April 14, 2003, 01:59:28 AM
Also can't figure out how to show() my ego - after the animation has stopped. I want to do an if(said statement and then the animation to play, hide ego, wait until animation ends, show ego. I tried a case statement within an if statement but this doesn't seem to work. Anyone know how I can do this?