Author Topic: ego and moveSpeed  (Read 5520 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

ego and moveSpeed
« 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


Artificial Intelligence Competition

Offline Jim C

Re:ego and moveSpeed
« Reply #1 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!  ::)

Offline Doan Sephim

Re:ego and moveSpeed
« Reply #2 on: December 11, 2003, 10:20:58 AM »
does anyone know how to do this?

Offline robingravel

Re:ego and moveSpeed
« Reply #3 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

Offline Doan Sephim

Re:ego and moveSpeed
« Reply #4 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

Offline Jim C

Re:ego and moveSpeed
« Reply #5 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.


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

Page created in 0.041 seconds with 20 queries.