(solved) How do I get all actions to pause.

Get help using Construct 2

Post » Wed Mar 26, 2014 7:55 pm

So I have this really great pause system in my game and all works just fine except. I have these objects that get created and move towards the main player and even when I click the pause button they still created and have a collision with the player object (mind you when I click pause they do stop the rotate behavior). They move toward the player as I use a move at angle x.player, y.player move 1 pixel kind of thing I know I should be using "dt" and my pause would work but where do I put my "dt" stuff.....

Is this posted sounding discombobulated?
Last edited by dthomasdigital on Fri Mar 28, 2014 4:05 pm, edited 3 times in total.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Wed Mar 26, 2014 8:00 pm

I assume you are using the timescale to pause?, all built in C2 behaviors use Dt so using bullet for these objects would probably be better...

Edit,objects can still be spawned even if time scale is zero...

eg on key pressed player shoot> create bullet,

So adding another condition based on your pause variable should stop the spawning...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Wed Mar 26, 2014 8:10 pm

I'm using a time function to spawn the objects say "every 2 seconds create object" - "move object towards player object". Both the spawning of the object and the movement do not pause. If you say do it as a bullet great, can I create a bullet to just spawn using my timing feature?
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Wed Mar 26, 2014 8:45 pm

Yes and adding a condition timescale is >0 to the spawning should sort that out too...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Thu Mar 27, 2014 12:07 am

You sir are my Hero
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Fri Mar 28, 2014 2:01 am

I spoke to soon, I just can't get this simple thing to work.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Fri Mar 28, 2014 2:06 am

So what's happening?...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Mar 28, 2014 2:21 am

Here is my section that sets the mines in motion:

Image

But when I do this:

Image

Everything pauses but the mine object continues till it hots the player object, the good news is another one does not spawn until the un-pause happens.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Fri Mar 28, 2014 2:31 am

ok i can help...BRB
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Mar 28, 2014 2:34 am

OK take a look at this...press p to toggle pause...

https://dl.dropboxusercontent.com/u/146 ... spawn.capx
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dand, MadSpy, tinhofiel and 34 guests