D
Dwojityv
Guest
Hi gmc,
I am having problem with particle system, especially with location. I can't figure out what did I done wrong. Would be cool if you guys could help me out, because I am desperate already!
Problem description :
I have multiple objects (coins) in a room and I want to emit a burst of particles on colision with player. However, particles appear on different coins I did not collide with and sometimes I cant see any particles at all.
I use this code in step event, which should update the location of particles every step, if I understand correctly.
I even tried to change the coordinates for self.x , self.y and even tried creating variable which holds objects id (lets call it myId) and called it as myId.x , myId.y. That didn't solve my problem either.
The problem is that i check for colision in coin object. Maybe checking for colision in player event would fix that problem, because I am having no problems with particles emitting from player object. However I would rather check on coin for some reasons.
I hope you understand my problem and if you need any more of my code, let me know!
Sorry for my english.
I am having problem with particle system, especially with location. I can't figure out what did I done wrong. Would be cool if you guys could help me out, because I am desperate already!
Problem description :
I have multiple objects (coins) in a room and I want to emit a burst of particles on colision with player. However, particles appear on different coins I did not collide with and sometimes I cant see any particles at all.
I use this code in step event, which should update the location of particles every step, if I understand correctly.
Code:
part_emitter_region(global.FPS, global.FE, x, x, y, y, ps_shape_ellipse, ps_distr_gaussian);
The problem is that i check for colision in coin object. Maybe checking for colision in player event would fix that problem, because I am having no problems with particles emitting from player object. However I would rather check on coin for some reasons.
I hope you understand my problem and if you need any more of my code, let me know!
Sorry for my english.