how to create the same Emitter in my game with the api

All information about Magic Particles: news, question, comments, etc.

how to create the same Emitter in my game with the api

Postby sofa120 » Thu Dec 27, 2012 10:56 am

hi,this 's my first time to use magic particles

i create one .ptc file , i want to know how can i create the same Emitter in one time .

i try that

MP_Emitter* emitter = new MP_Emitter((int)(MP.GetEmitter(7))->GetEmitter(),&MP);
MP.AddEmitter(emitter);

but doesn't work

so i need yours help .
sofa120
 
Posts: 3
Joined: Thu Dec 27, 2012 3:43 am

Re: how to create the same Emitter in my game with the api

Postby Odin_KG » Thu Dec 27, 2012 11:28 am

Hi,

i want to know how can i create the same Emitter in one time .

There is the function Magic_DuplicateEmitter() in API. Also you can use the function MP_Manager::DuplicateEmitter().
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 255
Joined: Sat May 09, 2009 10:53 pm

Re: how to create the same Emitter in my game with the api

Postby sofa120 » Thu Dec 27, 2012 11:36 am

Odin_KG wrote:There is the function Magic_DuplicateEmitter() in API. Also you can use the function MP_Manager::DuplicateEmitter().

it's ok
thanks
sofa120
 
Posts: 3
Joined: Thu Dec 27, 2012 3:43 am


Return to Magic Particles

Who is online

Users browsing this forum: No registered users and 9 guests

cron