Hi.
I made a Fighting game with Suitable artificial intelligence. Bu I have problem for Enemy Jump on bullets. mean I want if (e.g: Player bullet and Enemy <= 12) , enemy jump on it. this action sometimes work and sometimes good not work.
you can see capture of my Project at below link.
https://www.dropbox.com/s/f3la1a07v8eb32e/fight.wmv?dl=0
also I used this code for jump on bullet:
for a = 1 to P_MaxBullet
if Player.state = 11 //Player state is Fire Bullet
if Player.fire = 1 or Player.fire = -1
if GetSpriteExists(PBullet[a]) = 1
if GetSpriteDistance(PBullet[a],Enemy.spr) <= 15
if Enemy.state = 0 or Enemy.state = 1 or Enemy.state = 2 //(Enemy States: MoveRight, MoveLeft, Idle)
CreateEnemyLongJump()
endif
endif
endif
endif
endif
next a
Please Help me to fix this problem.
Thanks A Lot