Community
SCI Programming => SCI Syntax Help => Topic started by: King Graham on April 05, 2007, 12:12:25 PM
-
Two questions about speed:
1) How do you set the starting speed?
2) How do you let one view go slower than the other?
Thanks!
-
(1) I believe in the Initrooms script you will find (send gGame:setSpeed(5)) in the (method(doit). It may not be 5 by default, that might be my own change...but really you can use the (send gGame:setSpeed(#)) code almost anyplace you like to change the game speed. I tend to put it with all the init stuff in a roomscript if I want the room to have a certain speed.
(2) to make other views go slower it depends on what you mean. If you just want their animation to go slower, you can use cycleSpeed(#) and the higher a number you put there the slower the animation goes. Hopefully that is what you meant. It would look like this: (shinyThing:init()setCycle(Fwd)cycleSpeed(5)) and it's animation would be kind slow.
-
;D It works! Thanks!
I have another question:
I've used the script of Larry 2, Reloaded! for people passing by, and I want if you say 'talk guy' it says with everyone something else. How can you do that?
-
In response to Said('talk/guy'), just test which character the ego is close to (I think you learned how to do that yesterday with a door) and give the appropriate response.
-
That cant, cuz there all the same act. Only the view changes every time.
Darn!
-
Ok, so then just base the response upon the Act's current view.
-
Thanks! ;D
-
Ok,
The cycle speed thing might have answered another question I had about the change state method...that sounds better than what I was trying...but now how do we...hide the ego to add an animation...and then make the ego reappear?
JT
EDIT: answered in this thread: http://scicommunity.com/sciforums/index.php?topic=210.0