Moving static object
Select messages from
# through # FAQ
[/[Print]\]

DieHard Wolfers -> DieHard Archives

#1: Moving static object Author: Raistlin PostPosted: Wed Oct 06, 2004 2:19 am
    —
Does anyone know how to create a moving static object,
like a table that walks?

Or, alternatively. does anyone know how to make
a guard that moves, but cannot be woken up or
killed?

Not for any real currant use, I might
use it sometime in the distant future.

#2: Re: Moving static object Author: Guest PostPosted: Wed Oct 06, 2004 9:05 am
    —
Look at 4 pacman objects, you can replace those pacman with new ones...

You might want to check this one


just remove "gamestate.killtotal++;" from code.


I am not sure it will work, but you might want to try it out for yourself Smile

#3: Re: Moving static object Author: Adam BiserLocation: USA PostPosted: Wed Oct 06, 2004 12:42 pm
    —
You also need to comment out :
new->obclass = ghostobj;

Or the moving table will harm the player.

#4: Re: Moving static object Author: Raistlin PostPosted: Fri Oct 08, 2004 5:16 pm
    —
Hmmm....

I was thinking more one that can move in set
patterns like guards.....

#5: Re: Moving static object Author: Dugtrio17Location: Seattle PostPosted: Fri Oct 08, 2004 6:31 pm
    —
Hmm... I can give you some ideas to start with, but I can't write a tutorial since I don't really have the time.
Okay, you know that some actors have movement routines. Well, you can make certain objects have routines, perhaps by sticking a check of the entire statobjlist in the playloop at the bottom of WL_PLAY.C. If the object is equal to whatever you want to move, execute the routine with the object. Either way, advance through the static object list, by increasing a pointer by one (yes, I've found the purpose of pointers!) until you get to the last object in the list.
Of course, if you're truly lazy, just make an actor Razz



DieHard Wolfers -> DieHard Archives


output generated using printer-friendly topic mod. All times are GMT

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group