Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: Doan Sephim on December 02, 2003, 03:49:30 PM

Title: ego and moveSpeed
Post by: Doan Sephim on December 02, 2003, 03:49:30 PM
to help quicken movement in my game, im trying to do what sierra did with quest for glory, and using the run ability...and i ran into some trouble.
i checked out the user script and found the Ego class and all his properties...and moveSpeed looked like it would work.
well it works, but only in the wrong direction ;)  i set my global statement:
(if(Said('run'))
   (send gEgo:moveSpeed (0))
)
however, his current speed seems to be the fastest and i can only slow him down...i tried to set the property in the ego class to be slower, but to no avail...what am i to do?
doan
Title: Re:ego and moveSpeed
Post by: Jim C on December 02, 2003, 04:34:53 PM
I had the exact same problem, and found the same results. I would also like to know if there is a way to speed up an actor's movement without changing the game speed. Some of my actors are cars, and I would love to have them go faster than the characters on foot!  ::)
Title: Re:ego and moveSpeed
Post by: Doan Sephim on December 11, 2003, 10:20:58 AM
does anyone know how to do this?
Title: Re:ego and moveSpeed
Post by: robingravel on December 11, 2003, 11:50:41 AM
If you wish to make the ego to run, try this:

Quote
(if(Said('run'))
 (send gEgo: xStep (10) yStep (10))
)


Robin Gravel
Title: Re:ego and moveSpeed
Post by: Doan Sephim on December 11, 2003, 02:44:51 PM
hey thanks robin!
that code seems to work well, now all i have to do is draw the running views!
that will make things much quicker i think.
doan
Title: Re:ego and moveSpeed
Post by: Jim C on December 12, 2003, 08:20:33 PM
It works like a charm! Now my cars don't just crawl across the screen! Thanks, Robin.