a little script help

Game Editor comments and discussion.

a little script help

Postby phractus » Sat Mar 27, 2004 4:30 am

I have a walk() function but it is written for a specifiic actor. It contains all the information for the charector to walk to the certain point. So when i want him to start moving can just type walk();. I wanna know how to make the change animation though specific to whichever actor is running the walk() function. So if guyA "walks" it will know that it is him walking and makes his animations run, if guyB walks then it will use his preset animations. I guess for each person you could somehow create the variables for directing his animation and all of that. Do you think this system of using genral functions for several different actors will work fine or will it get clogged up some how?
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby makslane » Sat Mar 27, 2004 8:27 pm

On trouble here:

You can't change internal actor properties (x, y, xscreen, yscreen, ...) into a global function.

But you can call other any actions, like ChageAnimation, ...
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby phractus » Sun Mar 28, 2004 8:53 pm

It runs fine changing velocity's for actors in the global code.
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron