Wilco23 |
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) |
Eigen |
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 |
Wilco23 |
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 :) |
AGI1122 | Nope that isn't the same code as you posted before, 1 of the parenthesis is in a different place. |
Wilco23 | 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! |
Wilco23 | 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? |