Jump to content


Photo

Particle Help


  • Please log in to reply
3 replies to this topic

#1 HappyHardcore

HappyHardcore

    GMC Member

  • GMC Member
  • 87 posts

Posted 30 January 2009 - 02:59 AM

I've never gotten around to learning how to use particles very well. I would normally stick to the simple effects, because they don't have this problem I'm having right now.. but they're too limited for what I need now.

I have an attack that creates many of the same object, and I'm using a particle system in it. It creates the first object fine with the particle following it.(emitter is in step with coordinates set to x,y) ..but when I create the second same object, the particles leave the first object, and only follow the most recent. I need to have 15-20 of these objects on the screen at once with a particle on each of them.

Can someone please help me with this, or direct me to a good particle tutorial?
  • 0

#2 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 30 January 2009 - 03:29 AM

I've never gotten around to learning how to use particles very well. I would normally stick to the simple effects, because they don't have this problem I'm having right now.. but they're too limited for what I need now.

I have an attack that creates many of the same object, and I'm using a particle system in it. It creates the first object fine with the particle following it.(emitter is in step with coordinates set to x,y) ..but when I create the second same object, the particles leave the first object, and only follow the most recent. I need to have 15-20 of these objects on the screen at once with a particle on each of them.

Can someone please help me with this, or direct me to a good particle tutorial?


yeah go to this particle designer 2
it is a particle designer that will help you learn about particles as you use it
  • 0

#3 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16996 posts
  • Version:GM:Studio

Posted 30 January 2009 - 07:09 AM

Well that´s no help... Don´t use an emitter in the objects. Use part_particle_create, it´s much better and saves memory as you can do away with the emitter alltogether. Something like this...

//Streams 5 particles per step from a point...
part_particles_create(psysytem,x,y,particle1,5);

//Streams 5 particles per step from a an area of 128pxx128px...
part_particles_create(psysytem, x+(64-floor(random(128))), y+(64-floor(random(128))), particle1, 5);

I hope that helps...

PD: I´m checking out your other file right now and will PM you a fixed gmk in a short while...
  • 0

#4 Alert Games

Alert Games

    GMC Member

  • GMC Member
  • 1092 posts
  • Version:GM8

Posted 02 February 2009 - 04:45 AM

yeah, Mark13673 is right. creating the particles without the emitter is better, and u can use a general area. However, if you still prefer to use an emitter, you need to create an emitter for each point(and delete them when youre done).

also, you can emit the partcles at a set location, and move it relative to the object by using the part_system_position() function. that is, if you want to have the effect stay with the object.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users