Page 1 of 1

Hi-Score record and Menu in paused game

PostPosted: Mon Jun 11, 2007 5:50 am
by Bee-Ant
How to make High Score record and list at the end of game???if the game are game over or if the game finished???
How to make menu when game paused???such as..
=> Resume
Option
Exit to Main Menu
Exit Game
And how to make the control changeable???Thank's a lot... :lol:

Re: Hi-Score record and Menu in paused game

PostPosted: Mon Jun 11, 2007 12:11 pm
by Sgt. Sparky
Bee-Ant wrote:How to make High Score record and list at the end of game???if the game are game over or if the game finished???
How to make menu when game paused???such as..
=> Resume
Option
Exit to Main Menu
Exit Game
And how to make the control changeable???Thank's a lot... :lol:

I made a High Score Demo: http://game-editor.com/forum/tp-3572-Mu ... ames-.html
as for the pausing,
make a variable called direct(float, global), and one called Angle(integer, global), and one called pause(global, integer).
now, for the draw actor event of the player,
Code: Select all
if(pause == 1)
{
directional_velocity = 0;
EventDisable("Event Actor", EVENTALL);
EventEnable("Event Actor", EVENTANIMATION);
}
if(pause == 0)
{
//yvelocity actions and the rest
//of your code =)
}

and for the key down event of the puase button or P for the view,

Code: Select all
if(pause == 0)
{
    direct = player.directional_velocity;
    Angle = player.angle;
    pause = 1;
}
else
{
    pause = 0;
    player.angle = Angle;
    player.directional_velocity = direct;
}

:D
and your enemy coding should look somthing like,
Code: Select all
if(pause == 0)
{
    //enemy actions...
}

:D
If that does not help I will make a Demo. :D

!!!

PostPosted: Tue Jun 12, 2007 5:22 am
by Bee-Ant
Boss, scripts are just make me headache...send me these demo plizzz...I had downloaded your multi score with name and fighting game...but, I'm still confused with these scripts... :oops:

Re: !!!

PostPosted: Tue Jun 12, 2007 2:38 pm
by Sgt. Sparky
Bee-Ant wrote:Boss, scripts are just make me headache...send me these demo plizzz...I had downloaded your multi score with name and fighting game...but, I'm still confused with these scripts... :oops:

look at the scripts and look what they do, also play around with them and remove stuff and see what it does. :D (it is a Demo.)

Edit: oh wait! you want a pause Demo!
I will make one very fast. :D

PostPosted: Tue Jun 12, 2007 3:08 pm
by Sgt. Sparky