Distance related issues.
manoni123
Member Posts: 2
In my game I have several enemys and I have this command
that when one of my actor is moving> when colliding with one of the enemy's he stops, "kills"
and then procceeds moving.
the thing is that after my actor "kills" just the first enemy he encounterd he just doesnt
stop when colliding with others that, like the command i putted for others doesnt exist.
all of them has the same coding, when i change their positions he still strikes only the first one
but never stop again to "kill" the others when collids.
I'm pretty sure the way I did the distance stuff isnt correct but its working (for atleast one enemy)
what i did was create a game attribute called "Enemy Distance" and costrain it with the Enemy X position-300(my actor comes for the left) and for Actor I did when collids with "Enemy Distance they stop>shots> and move again.
any ideas on how to fix what I did? I'm pretty sure i'm missing somting, not sure what tho.
that when one of my actor is moving> when colliding with one of the enemy's he stops, "kills"
and then procceeds moving.
the thing is that after my actor "kills" just the first enemy he encounterd he just doesnt
stop when colliding with others that, like the command i putted for others doesnt exist.
all of them has the same coding, when i change their positions he still strikes only the first one
but never stop again to "kill" the others when collids.
I'm pretty sure the way I did the distance stuff isnt correct but its working (for atleast one enemy)
what i did was create a game attribute called "Enemy Distance" and costrain it with the Enemy X position-300(my actor comes for the left) and for Actor I did when collids with "Enemy Distance they stop>shots> and move again.
any ideas on how to fix what I did? I'm pretty sure i'm missing somting, not sure what tho.