is there a way to pause(PauseGame funtion)only certain actor

Game Editor comments and discussion.

is there a way to pause(PauseGame funtion)only certain actor

Postby Sgt. Sparky » Wed Jan 24, 2007 1:25 am

-s for example: only pauseing the main moving actor and a few others, ro pauseing all actors exept a few :D just curious :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Game A Gogo » Wed Jan 24, 2007 2:09 am

nope
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Sgt. Sparky » Wed Jan 24, 2007 2:20 am

:shock: Are you sure? :(
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Fuzzy » Wed Jan 24, 2007 10:55 am

Give the actors a variable called pause. Initialize it to 1 when the actor is created. Then you use a keypress event with that actor. when the key is pressed, set the pause variable to 0 or set it to 1 if it is already 0.

In the code where the actors velocity is set multiply the velocity by pause. If the actor does anything like shooting, check pause before allowing that.

It works just like the variable that prevents someone from jumping twice in the air.

Read my post here for a better idea of how to make it work.

http://game-editor.com/forum/viewtopic. ... eld+sheild
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Sgt. Sparky » Sat Jan 27, 2007 3:09 pm

positive Score for you! thanks :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron