Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 16/03/2004 01:30:02

Title: Enemy walking on a set path???
Post by: on Tue 16/03/2004 01:30:02
Say I wan't to have an enemy that walks back and forth on a walkway.  How would I script this so that the game doesn't make me wait forever.  Also, say you kill this enemy, how can I make it reapear somewhere else in the level where it walks back and forth also.
Title: Re:Enemy walking on a set path???
Post by: 00jon00 on Tue 16/03/2004 02:46:00
as for the walking part, I use the MoveCharacterPath(...) command, but for the other part, I have been having some problems myself....I can kill the enemy he just randomly appears in the room(at different lengths of time..Lol)
Title: Re:Enemy walking on a set path???
Post by: on Tue 16/03/2004 03:02:43
It might work if we could set exactly where he would appear after dying, mabye with a hotspot, like: MoveCharacterToHotspot and then set new paths for him... do you think that would work better?
Title: Re:Enemy walking on a set path???
Post by: 00jon00 on Tue 16/03/2004 03:23:24
It could, I'll try it...Sounds like a good idea.
Title: Re:Enemy walking on a set path???
Post by: on Tue 16/03/2004 04:53:04
Tell me if it works, I don't have any sprites so I can't really test it on my game yet.  It seems like it would work... anyway, tell me if it does!!!
Title: Re:Enemy walking on a set path???
Post by: 00jon00 on Tue 16/03/2004 23:21:26
OK, I'll tell you but it might not be for awhile...But I'll try it as soon as possible (or when I get around to it lol) 8)