Okay, I've got this really annoying bug in my Space Invaders clone and it seems so simple to fix but DBPro seems to have lost the ability to do greater than or less than comparisons in if statements!
Here's my code causing the problem:
if animStat=true
if abs(enemy(i).positionX-player.positionX)<20
if currAmtProj<possAmtProj
currAmtProj=currAmtProj+1
for i=0 to 2
if enemyProjectile(i).shot=false
enemyProjectile(i).shot=true
enemyProjectile(i).positionX=enemy(i).positionX
enemyProjectile(i).positionY=enemy(i).positionY
sprite enemyProjectile(i).spriteID,enemyProjectile(i).positionX,enemyProjectile(i).positionY,enemyProjectile(i).imgID
exit
endif
next i
endif
endif
endif
With player.positionX=400 and enemy(i).positionX=209, the program still manages to get to the for next loop.
I'm at a total loss as for why this should happen, any suggestions?