Author Topic: send gEgo:hide()  (Read 2557 times)

0 Members and 1 Guest are viewing this topic.

Offline Wilco

send gEgo:hide()
« 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)


__________________
***Cat's Quest***
---Coming (Not So) Soon!---
__________________

Offline Eigen

Re:send gEgo:hide()
« Reply #1 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
Artificial Intelligence Competition

Offline Wilco

Re:send gEgo:hide()
« Reply #2 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  :)


__________________
***Cat's Quest***
---Coming (Not So) Soon!---
__________________

Offline Chris Cromer

Re:send gEgo:hide()
« Reply #3 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.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Wilco

Re:send gEgo:hide()
« Reply #4 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!
__________________
***Cat's Quest***
---Coming (Not So) Soon!---
__________________

Offline Wilco

Re:send gEgo:hide()
« Reply #5 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?
__________________
***Cat's Quest***
---Coming (Not So) Soon!---
__________________


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

Page created in 0.061 seconds with 21 queries.