Jump to content


Photo

Particles Always Lagging?


  • Please log in to reply
4 replies to this topic

#1 holystorm

holystorm

    GMC Member

  • GMC Member
  • 422 posts

Posted 21 June 2009 - 11:39 AM

Hi, is there a way to add particles to your levels without the game actually slowing down? It seems that making particles for game maker is pointless because everytime you make one and add it into a stage it lags everything else horrendously. Are there any work arounds?

Thanks :)
  • 0

#2 TheLordMiga

TheLordMiga

    Unrivalled

  • New Member
  • 205 posts

Posted 21 June 2009 - 12:15 PM

Possibly sounds like you're doing something wrong. Can you post what you've got or elaborate on the situations where your level slows down.

I'm not good with particles either so I'm not going to be of much help but someone else definitely will be able to.
  • 0

#3 holystorm

holystorm

    GMC Member

  • GMC Member
  • 422 posts

Posted 21 June 2009 - 06:02 PM

Possibly sounds like you're doing something wrong. Can you post what you've got or elaborate on the situations where your level slows down.

I'm not good with particles either so I'm not going to be of much help but someone else definitely will be able to.


I make the particle as an object, and put the object on the stage. it has a create event in it, and also a step event. I use Lithiums Particle maker.
  • 0

#4 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 21 June 2009 - 08:03 PM

Possibly sounds like you're doing something wrong. Can you post what you've got or elaborate on the situations where your level slows down.

I'm not good with particles either so I'm not going to be of much help but someone else definitely will be able to.


I make the particle as an object, and put the object on the stage. it has a create event in it, and also a step event. I use Lithiums Particle maker.

Yeah, so let's see some code? Are you deleting the particles after a certain time? Are you deleting the object, but forgetting to delete the particle system?
  • 0

#5 holystorm

holystorm

    GMC Member

  • GMC Member
  • 422 posts

Posted 21 June 2009 - 11:09 PM

Create Event:

global.psmain=part_system_create();

global.pt1=part_type_create();
part_type_shape(global.pt1,1);
part_type_size(global.pt1,0.01,0.99,-0.20,0.52);
part_type_scale(global.pt1,0.38,1.35);
part_type_orientation(global.pt1,222.45,346.27,-10.05,11.28,0);
part_type_direction(global.pt1,84.38,242.37,16.40,13.48);
part_type_speed(global.pt1,3.08,5.90,0.41,4.52);
part_type_gravity(global.pt1,0.14,246.53);
part_type_color3(global.pt1,15395045,15521390,5586146);
part_type_alpha3(global.pt1,0.67,0.77,0.66);
part_type_blend(global.pt1,1);
part_type_life(global.pt1,22.20,30.12);

Step Event:

repeat (3)
{
part_particles_create(global.psmain,

x-68.79+random(137.59),
y-71.39+random(142.77),

global.pt1,1);
}

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users