Object count ?

Discuss game development design and post your game ideas

Post » Mon Jul 17, 2017 12:12 pm

Hi totally new to construct and I'm just messing around with examples and I have come across a problem with this example and cannot understand why the object count keeps on getting higher and higher even though I have told construct to destroy the object when it leaves the screen? When I debug and watch the program the CPU starts on 2% but when the object count gets to nearly 90 the CPU is running 5%........eventually chrome stops and says it ran out of memory....tried it on construct 2 and 3 and both same results so deffo me the problem.

Anyways here is the program super small but any info to why this is happening on so small program would help me understand what I'm doing wrong.

https://app.box.com/s/dte1ig6evwjxogl1pmp9o0k89e2cbbhg
B
9
S
5
G
1
Posts: 3
Reputation: 1,331

Post » Mon Jul 17, 2017 1:46 pm

You have a second Spawner offscreen.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Mon Jul 17, 2017 4:35 pm

Blackhornet your my lifesaver..total newbie mistake, I messed around with the screen size and had 5 spawners off screen and thought I had deleted them all...DOH !! you live and learn...many thanks for quick reply...much appreciated :)
B
9
S
5
G
1
Posts: 3
Reputation: 1,331


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 1 guest