Page 1 of 1

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

PostPosted: Thu Dec 27, 2012 10:56 am
by sofa120
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 .

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

PostPosted: Thu Dec 27, 2012 11:28 am
by Odin_KG
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().

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

PostPosted: Thu Dec 27, 2012 11:36 am
by sofa120
Odin_KG wrote:There is the function Magic_DuplicateEmitter() in API. Also you can use the function MP_Manager::DuplicateEmitter().

it's ok
thanks