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 / Give the player option to retry or quit

Author
Message
GraPix
User Banned
Posted: 19th Jun 2009 08:12 Edited at: 19th Jun 2009 09:19
I had modified Gameover script, it is showing buttons and cursor but i am not able to click (nothing happens whenever i click). Also scanccodekeypressed= Q is not working...



Your signature has been erased by a mod - please make it no larger than 600x120, thanks
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 19th Jun 2009 22:59
Quote: ":state=1:hudshow=1,hudshow=2,hudshow=pointer,state=2"


That first line in state=1 has no other conditions so it executes right away, which sends it to state=2.

You are going to state=2 immediately after going to state=1, so the rest of state=1 is being ignored.

:state=1,hudselectionmade=1:quitgame,destroy
:state=1,hudselectionmade=2:destroy
:state=1,scancodekeypressed=16:destroy

Change those to state=2 and it might work.

GraPix
User Banned
Posted: 20th Jun 2009 11:06 Edited at: 20th Jun 2009 14:45
tnx i will give it a try...

I am using SCANCODEKEYPRESSED command. I know that if i edit gameover.fpi and add scancodekeypressed=X:destroy DESTROY will make player go to main menu. but what if i want it go directly new game? (loading scrn?)

default gameover.fpi uses DESTROY to let user view main menu and default titlemenu.fpi also uses DESTROY to let user start new game.

But i want if user press Y = NewGame and N = MainMenu???

Anybody knows how to.. ^^^^^^^^^^^^^^^^^

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
GraPix
User Banned
Posted: 22nd Jun 2009 08:36 Edited at: 22nd Jun 2009 08:36
2 days, no replys.. no one??

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
GraPix
User Banned
Posted: 23rd Jun 2009 08:37
3 days.. no replies
what's the reason?
r u all trying to make me ><?
Only CE is helping me.......

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 23rd Jun 2009 20:21
am sure the reason no one is answering is cause it's known how.. ur not being ignored..


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Jun 2009 21:49
Your last request was as simple as showing a HUD displaying the option, then waiting for the user to press a key, which you would then check with "scancodekeypressed".

You don't learn from others giving you the answer. Instead of waiting around for someone to answer, why not go try to do it yourself? Experience is the best teacher.


The one and only,


GraPix
User Banned
Posted: 24th Jun 2009 09:49
yes, but i don't know what action to use for launcing new game

Your signature has been erased by a mod - please make it no larger than 600x120, thanks
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 24th Jun 2009 21:29
I believe the action for starting a "newgame" is "newgame"


The one and only,


Login to post a reply

Server time is: 2024-11-25 03:34:38
Your offset time is: 2024-11-25 03:34:38