Hi guys,
Been working through the tuts on here (which are fantastically done), espectially the FPS ones.
I am having a little trouble getting the intersect object function to work, however, when using enemies called from an array at the top.
Say I have enemy(e). = enemies
enemies = 10
and the enemy variables called afterwards and the media required to actually make the enemies.
This all works fine. I have the states set up so they wander and attack me if close etc.
My problems occur when trying to get it so my player can shoot the enemy objects.
I can do this fine using the intersect object function when I only have 1 enemy made without arrays. I just follow the syntax of the function through and if any of the x,y or z from my bullet intercept limb are >1 - then DEC enemy HP - 10 (or enemy.hp=enemy.hp-10)
What I believe I am getting confused with is how to display the arrayed enemy in the Intersect syntax.
Can anyone shed any light?
The tuts Ive seen all relate to just using one enemy - which is easy enough as I can just call the object number (2 or 3 or whatever).
Am I going about this wrong? Do I instead need to call the enemy(e) x, y & z posiions as seperate variables and then use them in a different way?
Apologies if this is a bit thin - I dont have the code to hand on this PC, so I apologies for that.
Any help much appreciated.
Mabuggi
DAB Studios