A
Ash2o
Guest
Hello everyone !
Let me tell you all a little story...
I was working on a Pong-Like project ( yes, beginner thing ) and, suddenly, I got an Error Message which was telling me that I didn't set variables before the program reads them. I was kinda puzzled, the Message was about an object I haven't even touched since a long time. With a closer look, I noticed that the problem in the object is the x or y. And I also noticed that EVERY object with a code which changes its x and y wasn't working anymore. I asked for some help to people who were used to GML. We conclude that the most probable issue was that the project had been corrupted for some reason.
Well, fair enough, I was motivated to make my game so I decided to remake the project. Here we are. I have barely created some objects, I want to try if the problem is still a thing or not. So I created a simple object with one line in Step, which is :
y = y + 2;
I run the game. It didn't even launch, and, the a Fatal Error is always here. I don't understand at all what can cause an error like this. So, here is the Error Message :
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object objTest:
Variable objTest.(null)(100004, -2147483648) not set before reading it.
at gml_Object_objTest_Step_0 (line 1) - y = y + 2;
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_objTest_Step_0 (line 1)
So it looks to forbid me to use x and y. For movement, it's okay, I still have hspeed and vspeed but... I can't even use a place_meeting(x,y,object)
I looked on the Internet for somebody who had had a Fatal Error such this one ( with the "(null)" thing ) but I didn't find. Maybe one of you knows this issue and a solution to make my projects revive :/
Thanks for reading guys and sorry for my English skill which is not perfect
Let me tell you all a little story...
I was working on a Pong-Like project ( yes, beginner thing ) and, suddenly, I got an Error Message which was telling me that I didn't set variables before the program reads them. I was kinda puzzled, the Message was about an object I haven't even touched since a long time. With a closer look, I noticed that the problem in the object is the x or y. And I also noticed that EVERY object with a code which changes its x and y wasn't working anymore. I asked for some help to people who were used to GML. We conclude that the most probable issue was that the project had been corrupted for some reason.
Well, fair enough, I was motivated to make my game so I decided to remake the project. Here we are. I have barely created some objects, I want to try if the problem is still a thing or not. So I created a simple object with one line in Step, which is :
y = y + 2;
I run the game. It didn't even launch, and, the a Fatal Error is always here. I don't understand at all what can cause an error like this. So, here is the Error Message :
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object objTest:
Variable objTest.(null)(100004, -2147483648) not set before reading it.
at gml_Object_objTest_Step_0 (line 1) - y = y + 2;
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_objTest_Step_0 (line 1)
So it looks to forbid me to use x and y. For movement, it's okay, I still have hspeed and vspeed but... I can't even use a place_meeting(x,y,object)
I looked on the Internet for somebody who had had a Fatal Error such this one ( with the "(null)" thing ) but I didn't find. Maybe one of you knows this issue and a solution to make my projects revive :/
Thanks for reading guys and sorry for my English skill which is not perfect
Last edited by a moderator: