Author Topic: Hide() function  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

Offline Wilco

Hide() function
« on: May 17, 2003, 04:40:25 AM »
I'm a little stressed here.  :-\ I'm trying to hide my ego from the screen, so that I can initiate an animation (which contains the ego) and then once the animation has finished I want to be able to show the ego again. Anyone know how I can do this? This is my script, which hides the ego, initiates the animation, but when the animation finishes I don't know how to display my ego again.

        (if(Said('use/litter'))
          (if(< (send gEgo:distanceTo(litter)) 10)
            (litter:
              init()
              setCycle(End)
              cycleSpeed (5)
            )
            (send gEgo:hide())
          )(else
            Print("You're not close enough")
          )
        )

 ???


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

Offline Brian Provinciano

Re:Hide() function
« Reply #1 on: May 17, 2003, 04:53:57 AM »
What you want to do can be easily done, but you are better off not hiding the ego, but rather changing the ego's view/animation/cycle to the new animation, then back to the old when finished. The info is in the help file.

Offline Wilco

Re:Hide() function
« Reply #2 on: May 17, 2003, 05:11:32 AM »
OMG that's so easy I didn't even think of it! I was convinced the problem was in the code, ok so I will just change the view and add my animation to the ego's view. Thank Brian!
__________________
***Cat's Quest***
---Coming (Not So) Soon!---
__________________


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

Page created in 0.018 seconds with 17 queries.