J
jaakko meyn
Guest
I am working on an enemy that I want to shoot a laser beam from itself to the player, which im doing using the draw event. I have the laser with the draw event as a different object that is created in the enemy object. The laser object draws a line from the enemy.x/y to the player x/y, but I need to define which enemy object it draws it from, so how do I do that?
(I dont see any reason to include the code for this sinze its scattered around a few events and objects and its only a couple of lines, but if someone wants it I can show it)
This image may help
(image) So lets say the eye on the right has reached the point where it is supposed to create the laser object, and the line is drawn from that eye. But now the second eye also reaches the specific point and shoots the laser, but the laser is still drawn from the first eye, which I obviously dont want
(I dont see any reason to include the code for this sinze its scattered around a few events and objects and its only a couple of lines, but if someone wants it I can show it)
This image may help
(image) So lets say the eye on the right has reached the point where it is supposed to create the laser object, and the line is drawn from that eye. But now the second eye also reaches the specific point and shoots the laser, but the laser is still drawn from the first eye, which I obviously dont want