My game creates some enemies.
This enemy can generate an horizontal laser on the left, or on the right. Basically, it's the same laser, it's just changing its position and angle.
I would like it to create and maintain the laser to the right when the player.X > enemy.X, and vice versa.
When the player.X becomes < enemy.X, after 1 second the laser changes side.
I managed to do that for 1 enemy, but it doesn't work well with several enemies. There are some conflict between the laser instances. I don't really know how I should associate the laser to the enemy.
If someone can help me out regarding this issue...
Here are my crappy events :
And my capx : http://www.canapin.com/shooter/paper%20shooter.capx
The event are in the enemies event sheet.