Pause menu!

Talk about making games.

Postby makslane » Wed Oct 19, 2005 3:13 am

I have clicked in your Resume actor but does nothing...
Anyway, when you use the PauseGameOn function the actors can receive mouse and keyboard events. So, you can use any mouse or key event to destroy the menu after pause and continue the game.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby CdaMarinersFan » Fri Oct 21, 2005 1:07 am

Well, let me try that... maybe first put PauseGameOn() first, then DestroyActor().
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby CdaMarinersFan » Fri Oct 21, 2005 1:09 am

By the way, Makslane, did you have any trouble with setting up this php Bulletin Board, with perhaps getting a message
First delete Install/ and Config/ files
like that?
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby makslane » Fri Oct 21, 2005 4:07 am

Where you see this message?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby CdaMarinersFan » Thu Oct 27, 2005 1:14 am

Oh, just after the first part of installation of phpBB, but I've figured that part out. Now, I just have to figure out how to create a new Board style to my BB.
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby makslane » Thu Oct 27, 2005 12:12 pm

What's happen when you call PauseGameOff() ?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby CdaMarinersFan » Fri Oct 28, 2005 5:14 am

Well, it works now :) But now, the End of Game Menu doesn't want to come up after the 5 minutes are up. I coded it like this...

Code: Select all
if(Minute.textNumber <1)
{
DestroyTimer(Timer1000...); [This works in game]
Minute.textNumber = 0; [This works in game]
CreateActor("pauseMenu", "PauseMenu", "no parent", "no path", 0, 0, true);
[9 More CreateActors for 9 more actors]
}

More problems just keep coming up, huh?
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby makslane » Fri Oct 28, 2005 8:37 pm

If your '"End of Game Menu" is created in a Timer event, make sure create the timer in the "End of Game Menu" actor
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby CdaMarinersFan » Fri Oct 28, 2005 10:20 pm

The event is under View, and I am trying to destroy a timer, so should I try to create a timer instead of the Create Actors and have them under Timer?
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Postby makslane » Sat Oct 29, 2005 6:21 pm

You must call "Destroy Timer" in the actor that have the timer
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby CdaMarinersFan » Tue Nov 01, 2005 2:08 pm

Well, yeah, I mean as if to create a whole new timer and destroy "Timer 1000"
Image
User avatar
CdaMarinersFan
 
Posts: 109
Joined: Wed May 11, 2005 11:20 pm
Score: 0 Give a positive score

Previous

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest