Hey I'm doing some basic programming in GML and I was trying to use a variable in one object to effect another. Pretty simple I just used:
[Obj_PlayerManager.Create] Dmg = 1
[AsteroidParent.Collision(Obj_Laser)] Hp -= Obj_PlayerManager.Dmg
But when run it states that the variable Dmg hasn't been declared. I tried to figure out what it was cause it's pretty clearly declared and best I could find was Dmg stayed greyed out no matter what. Anyone have any idea why?