H
Halas
Guest
I keep getting this error for this message.
Purpose of the code, not to damage the player while dodging.
Line of code:
Purpose of the code, not to damage the player while dodging.
Line of code:
Code:
if Obj_Player.state != "backstep" or !Obj_Player.state != "frontstep"
{
other.hp -= damage;
}
GML:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step EventObj_Player
for object Obj_hitbox:
unable to convert string "backstep" to bool
at gml_Object_Obj_hitbox_Collision_d0aa4282_5d94_470e_b839_a3cb0c2586fb (line 6) - } else if Obj_Player.state != "backstep" or !Obj_Player.state != "frontstep"
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_Obj_hitbox_Collision_d0aa4282_5d94_470e_b839_a3cb0c2586fb (line 6)