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 Scripts / frame rate and a question

Author
Message
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 7th Sep 2007 22:39
What can cause that the frame rate in my game is low (between 18 and 24)? (Without enemies)

The frame rate drops down dramatically if I put 5 Aiko sci-fi character in the level What can cause this?

Is it possible to make a script to spawn an enemy when I killed an other?
Cheese Cake
17
Years of Service
User Offline
Joined: 11th Dec 2006
Location: At the bakery
Posted: 8th Sep 2007 00:54
FPSC the x9 version isnt compatible with lots of enemies.

Therefore if you want several enemies in 1 level.
But you dont want a swarm of enemies...so just like
you are in a building you see 1 enemy you kill him,
a few rooms after that the next 1 etc etc...

If you want something like that the best thing to do is:

Create a triggerzone,
Set the script to: plrinzoneactivateused.fpi,
And in the ifused bar type in your enemies name,
(Make sure that you name your enemy's name unique! So dont name it monster if all your enemies are named monster)
Then place your enemy and right click on it,
Set spawn at start to no,
And spawn after delay to yes,

Thats it!
What this do is simply spawning an enemy when you enter this
triggerzone.
Therefore its much better then placing enemies in a random
place.
Because it will kill the framerate.

Also you can get good results with this "optimization"
for horror games.

If you made a hallway place a triggerzone at the end (or maybe somewhere else, its up to you),
Put some lights in the hallway..but it has to be dark!
Place an enemy behind the triggerzone(so it would spawn behind you),
Then test your game...

This will give the game some creepy effects because you'll never
know where the enemies are...and then suddenly one is behind you!


Anyway hope it helped!


Cheers,
Cheese Cake.
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 8th Sep 2007 13:01 Edited at: 8th Sep 2007 13:18
Thanks. It's helped me.

But.. is it possible to do this with characters?
I mean if I "use" (destroy an enemy) then spawn an other enemy.

Because I don't found IfUsed feature when I right-click on a character.

Thanks,
Chris
Greek freak
17
Years of Service
User Offline
Joined: 28th May 2007
Location: Greece
Posted: 23rd Sep 2007 12:50
You can do Spawn when dead:yes by right clicking on the character entity.

The problem is not if there isn't after-death-life. The problem is if there is no life in life!

Login to post a reply

Server time is: 2024-11-23 23:34:59
Your offset time is: 2024-11-23 23:34:59