|
Post by AndyJF on Apr 13, 2020 17:08:20 GMT
I've got aliens that randomly shoot at the player, the problem is they are being killed by their own lasers Is there a way to differentiate between lasers fired by the player and lasers fired by the aliens? Thanks
|
|
|
Post by alessandro on Apr 13, 2020 18:14:23 GMT
Hi Andy, according to the AGD manual, "Sprite collisions with lasers can be detected in the sprite type events using IF COLLISION 10". Are you sure you did not put this instruction in the other sprites' script, and not only in the player character sprite script?
|
|
|
Post by Jonathan Cauldwell on Apr 14, 2020 1:19:24 GMT
There is no way to determine where a laser came from, they are just part of the particle engine. You might be better off keeping lasers for the player and making enemies shoot sprites instead
|
|
|
Post by AndyJF on Apr 14, 2020 8:08:04 GMT
Hi Andy, according to the AGD manual, "Sprite collisions with lasers can be detected in the sprite type events using IF COLLISION 10". Are you sure you did not put this instruction in the other sprites' script, and not only in the player character sprite script? Thanks for the reply Alessandro. Initially only the player could fire so I'm checking collision 10 in the enemy sprite scripts. It looks like there's no way around it (see Jonathan's comment)
|
|