S
Starlight
Guest
I was on version 2.2.1.3 and using the below code in multiple places without a problem
This worked and I've used it across my game
After updating to 2.2.2.4 I can no longer do this, and get the following error
Is this a bug or regression in the update?
If not, I don't mind updating my code, but what is the correct way to define a variable that functions this way?
Ex. How do I declare 'move' so that I can use move.var1, move.var2, move.var3 etc. and return the entire structure
What is the variable type I was seemingly implicitly creating before?
Code:
move = "EnemyIdle";
move.state = states.idle;
return move;
After updating to 2.2.2.4 I can no longer do this, and get the following error
Code:
FATAL ERROR in
action number 1
of Create Event
for object object_tempEnemy:
unable to convert string "EnemyIdle" to int64
at gml_Object_object_tempEnemy_Create_0 (line 19) - move.state = states.idle;
If not, I don't mind updating my code, but what is the correct way to define a variable that functions this way?
Ex. How do I declare 'move' so that I can use move.var1, move.var2, move.var3 etc. and return the entire structure
What is the variable type I was seemingly implicitly creating before?