On-Screen Spawn Problem (SOLVED)

Get help using Construct 2

Post » Tue Jun 18, 2013 7:27 am

Hello, I'm trying a basic shoot em up game, there a problem it can spawn 5 enemy ships from first spawner, then second and third spawners won't work.

Would you give me an explanation why is not working? It seems a reasonable logic, but it gave me neck pain.


Here is .capx

https://dl.dropboxusercontent.com/u/76227787/spawnProblem.capxJoannesalfa2013-06-18 21:28:56
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Tue Jun 18, 2013 8:22 am

I'd do it something like this:



Spawned is a boolean instance variable that starts as false.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Tue Jun 18, 2013 9:28 pm

@vee41 Thanks!

I didn't know about the booleans are nice workaround than numbers.
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, krombanna and 7 guests