Hi.
for my character I used Random() command . (for e.g: if Rand = 1 then FireBullet, if Rand = 2 then Walking to Player ,....) .
but sometimes when Rand is 1 instead of play FireBullet Animation. it Play Walking to Player Animation.
so I need a way to find this problem. but I don't know how can find it with debugger, also I don't know AppGameKit debugger can do it or not . if anyone have idea pleaseguide me to fix it.
this is my Random code:
if BeginFight# <= 2.0 then BeginFight# = BeginFight# + 0.05
if BeginFight# >= 2.0
if Rand = 0
if Dist >= 2
Rand = Random(1,3)
while Rand = LastRand
Rand = Random(1,3)
EndWhile
Select Rand
case 1: //Fire Bullet
EAttack[4] = 3
endcase
case 2: //Walking to Player
if Enemy.x > Player.x
EnemyWalkingForwardAI()
else
EnemyWalkingBackAI()
endif
endcase
case 3: //Dash to Player
Enemy.dash = 3
endcase
EndSelect
else
Rand = Random(4,3)
While Rand = LastRand
Rand = Random(4,3)
EndWhile
Select Rand
case 4: //knife 1
EAttack[1] = 3
endcase
case 5: //knife 2
EAttack[2] = 3
endcase
case 6: //knife 3
EAttack[3] = 4
endcase
EndSelect
endif
endif
endif
I think this code is correct and problem is relate to Action Functions() . but I want know is there any way to check some variables with debugger or not?
Thanks.