Create an object for every particle spawned

Get help using Construct 2

Post » Wed Mar 06, 2013 3:02 pm

Hey guys ,

I'm making a bullet hell , and I'm asking myself a question
Is it possible to spawn a sprite for each particle spawned ? It's about collision boxes ( Particles collision boxes doesn't work as intended )

Thanks for response ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Wed Mar 06, 2013 3:16 pm

I would just create a Spawner object type, and spawn the Bullet sprite using the spawner, instead of using particles. The direction, speed, position and sizes can be set on the event of the Bullet On Created.
B
6
S
1
Posts: 11
Reputation: 934

Post » Wed Mar 06, 2013 3:23 pm

That's not what I want , Making a spawner object would double , even triple the work to be done , That's why they created the particles object ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Wed Mar 06, 2013 4:46 pm

anyone ?

I need it for a competition and the competition is ending soon ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Wed Mar 06, 2013 5:41 pm

xavy027's idea is pretty much the way to do it. Don't use particles, instead use sprites with the bullet behavior. There is no way to get the position of individual particles of the particle object.
B
79
S
24
G
53
Posts: 4,731
Reputation: 40,225

Post » Wed Mar 06, 2013 8:03 pm

http://www.upload.ee/files/3126803/bullet.capx.html

Here is a simple way to spawn a lot of bullets to the screen. If you want more bullets just add more image points. Though I have tested with the game that I am working on and found out that about 4000 bullets on screen is the limit, after that the FPS will go to 0. My new computer can handle it, but my old Vista just freezes.
B
14
S
5
G
4
Posts: 107
Reputation: 4,758

Post » Wed Mar 06, 2013 8:14 pm

Found a way around , Thanks for all ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564


Return to How do I....?

Who is online

Users browsing this forum: Braus, Draconinho, luisgmolina, Magistross, nedzad, nimos100, R0J0hound and 31 guests