Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / enemies respawning as different enemies?

Author
Message
Scorple
15
Years of Service
User Offline
Joined: 3rd Jan 2009
Location:
Posted: 9th Aug 2009 10:07
is there a way to make it so that when you kill an enemy it'll spawn a different enemy that when killed spawns a another different enemy and so on? like, 3 enemies come at you and when you kill them, 3 different enemies, perhaps ones with more health and better weapons come at you and the chain just keeps going. I know this can be done through scripting, but I don't really want to have to write a lot more script, and the "activateifused" destroy script won't work because character entities don't have an "ifused" section. so, anyone know a simple way to accomplish this?

Don't ask, don't tell <-< >->
rakker126
16
Years of Service
User Offline
Joined: 12th Sep 2008
Location:
Posted: 9th Aug 2009 10:47 Edited at: 9th Aug 2009 10:48
No, off course not

PS: you should post in scipting!

Now in the W.I.P. forum: operation sunlight
http://forum.thegamecreators.com/?m=forum_view&t=149451&b=25
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 9th Aug 2009 18:26
another definate answer from your friend rakker126

when you give the enemy respawns, its basically just him getting up off the ground after dying.
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Aug 2009 04:13 Edited at: 10th Aug 2009 04:32
Quote: "enemies respawning as different enemies?"

Sure, but not in the spot that they died but the same spawn spot or differentones is doable.

Quote: "is there a way to make it so that when you kill an enemy it'll spawn a different enemy that when killed spawns a another different enemy and so on? like, 3 enemies come at you and when you kill them, 3 different enemies, perhaps ones with more health and better weapons come at you and the chain just keeps going."

Waves of increasingly difficult enemies are possible.
It is easy to better equip them and give them more health, since you are spawning a different character.

Quote: "I know this can be done through scripting, but I don't really want to have to write a lot more script, and the "activateifused" destroy script won't work because character entities don't have an "ifused" section. so, anyone know a simple way to accomplish this?"

You would set your characters up to spawn. (spawn at start = no, etc)
You could use custom destroy scripts for each character that contain the following.

settargetname=your_next_enemys_name

activatetarget=1

Each destroy script is then specific on which one it spawns next and that would be the way to name the script files, not after the character using it.
That way, you know exactly which character is being spawned next when selecting that destroy script.

outlaw241
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location: Ontario Caliiiiii US of A
Posted: 10th Aug 2009 07:39
no. just spawn new enemy. simple

Windows 7 -AMD Athlon 64 X2 3800+-4GB RAM-Gforce GTS 250 1GB

Login to post a reply

Server time is: 2024-10-12 21:26:39
Your offset time is: 2024-10-12 21:26:39