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 / Leave level only after you killed all bad guys?

Author
Message
MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 26th Jan 2013 13:11
I'm sorry if this is a dumb question I've searched all trough this forum, I might have overlooked it though, however my question is rather simple:

Is there a way to in example create a door to the exit that will only be opened automatically after the player has killed all the bad guys in the level?

Or maybe that the exit only works if all the bad guys are dead?

I'm hoping somebody has a nice solution for this. It would also work if in example a key was dropped after killing the last bad guy maybe?

Thank you in advance any help is welcome.
Corno_1
15
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 26th Jan 2013 16:28
Here is the same question:
http://forum.thegamecreators.com/?m=forum_view&t=178822&b=23
find it in 10 sec on google wit this:
"fpsc enemy kill win"

Hope this helps you


bruce3371
15
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 26th Jan 2013 20:04 Edited at: 26th Jan 2013 20:06
I think that solution requires you to kill the enemies in sequence?

Here's an alternative solution, whereby it doesn't matter in what order you kill the enemies, it only matters that you kill the right amount.

With this solution, you kill 10 enemies (the amount can be changed), to unlock a door.

In the door's AI main field, use this script;



Then for each enemy you want to kill, you use this script in their Destroy field;



To change the amount of enemies that need to be killed, just change the number in this line of the door's script;

:state=0,varequal=10:state=1,setframe=0,sound=$0

to whatever number you want, remembering to use the destroy script for every enemy you need to kill.

Corno_1
15
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 26th Jan 2013 20:27 Edited at: 26th Jan 2013 20:28
Quote: "I think that solution requires you to kill the enemies in sequence?"

I did not know, but he can test it bruce

I also have another solution


enemy destroy script
ragdoll

leavescorpse

fadecorpse


This are now three solutions
Test them all and decide


MiRRoRMaN 64
22
Years of Service
User Offline
Joined: 11th Jan 2004
Location:
Posted: 26th Jan 2013 22:48
Thank you so much guys, I did really search my buns off but looking at it now you used different phrases than I used. Sorry about that I think my head might have also not been too in the game due to some sad circumstances irl yesterday.

Thats also the reason I'm fiddling around with FPSC again after some time away from it, to kinda clear my head and keep busy with other stuff in my spare time.

Hope you understand, lots of info there but oh well. Also helps to get some stuff of your chest now and again. So again, thank you.
bruce3371
15
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 27th Jan 2013 00:29
Quote: "I did really search my buns off but looking at it now you used different phrases than I used. "



Admittedly there is a lot of info out there, and trawling your way through the forums, looking for what you want, even with the search, can be quite a chore at times.

Most people around here are only too happy to help out, nice friendly bunch they are!

Login to post a reply

Server time is: 2026-07-03 05:22:02
Your offset time is: 2026-07-03 05:22:02