How do I pause and continue loop in a function

Get help using Construct 2

Post » Sun Jul 10, 2016 11:31 am

I have a spawn system function that looks like this

Image

When i pause the game, using this code

Image

The enemy AI keeps on spawning

How can i pause the spawn system function when paused?
B
41
S
21
G
27
Posts: 39
Reputation: 17,252

Post » Fri Jul 15, 2016 3:10 pm

I would honestly just break the loop and reinstate it on button presses.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Fri Jul 15, 2016 7:54 pm

The function is 'pauzed'.
The postponed actions are not.

Use System > timescale.

(Change the rate time passes at in the game. Useful for slow-motion or pausing effects.)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: Elliott, kellehk, rollyzz, Voytek and 21 guests