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 / Pls help! In Story Zone: after the video, restart level or start to checkpoint

Author
Message
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 14th Apr 2011 22:21
What kind of script must I use, if I will this: In my level if you in story zone, come the video and after the video, restart my level. Or this, but restart to checkpoint.

I made my game
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 15th Apr 2011 15:43
That's gonna be tough because as far as I know there's no way to check in your FPI script that the video has ended.

If I were doing this, I'd have to resort to a bit of trickery: move the player to the desired location first then play the video so that when the video ends (or is interrupted by the player) the player can resume gameplay from the desired location.

As for restarting your level, I didn't see a command for that either, but if you set up a triggerzone at the start or checkpoint and use that to spawn your enemies, set your variables, etc you can simulate restarting the level by moving the player back to that triggerzone (or a nearby entity) with PLRMOVETO={entity name}.

Just thought of this: another way would be to set the player's health to 0 to force a level restart, albeit at the cost of one life in the game - not sure if that's what you want or not, but that should work also for restarting the level.
Gordeszkakerek forum
13
Years of Service
User Offline
Joined: 14th Feb 2011
Location:
Posted: 17th Apr 2011 16:39
Thank you!

I made my game

Login to post a reply

Server time is: 2024-11-24 08:51:08
Your offset time is: 2024-11-24 08:51:08