Construct 0.99's error after thousand of objects?

For questions about using Classic.

Post » Sun Apr 24, 2011 1:35 pm

Hi, I am trying to test the performance of Construct 0.99.97, using the Ghost Shooter tutorial. I reduced the size of the monster's sprite to 32 x 32, make the layout 640 x 480, exactly the same as the screen, and turn off collision for player and monster. (or else all monsters will eat the player alive)

I used a simple event that if I hold the right mouse button, I will spawn a monster in every 2 milliseconds. I am going up to 5000 monsters on the screen at once and the game is still not lagging at all. I'm very impressed. This is something that we can't do in some other Game Creation software. :mrgreen:

But anyway, when there are so many instances, a few things are not right:

1. The collision between the bullet and monster sometimes do not work. Bullets simply fly over the monsters on some occasions.

2. When monster is outside the layout, it will move its angle toward the player. This time, I set the monster to rotate 360 degrees toward the player. This makes the monster instantly shift its direction toward the player when it is outside the layout. What is interesting is when there are so many instances, sometimes, these monsters suddenly "jump" to positions near the player and move toward the player instead.

These two things occur more frequently when I hold down the right button, spawning stream of monsters.

So from this, I start to worry about having too many instances in a layout, due to this error. Should we do anything about this? I know that most of the time, I won't be hitting more than 1000 instances, but in some rare chances, and just in case, what can we do?
B
2
G
1
Posts: 38
Reputation: 526

Post » Sun Apr 24, 2011 2:31 pm

im pretty sure what your experiencing is not due to the high object count, but probably due to the code that controls them not being built for so many instances, and perhaps framerate, and the z ordering.

i never saw any bugs when i had a ton of objects. although it would be nice to see this cap file, instead of having to recreate it ourself
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Apr 24, 2011 2:52 pm

[quote:28ac4kwz]i never saw any bugs when i had a ton of objects. although it would be nice to see this cap file, instead of having to recreate it ourself[/quote:28ac4kwz]
I do agree with you :) so here : http://www.megaupload.com/?d=SC04URUZ

I followed the Ghost Shooter tutorial to about part 3 before doing the basic AI. After that, I add "Right mouse button is down" for spawning monsters.
B
2
G
1
Posts: 38
Reputation: 526


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests