Erro <unknown object>
Enviado: Seg Jun 20, 2016 5:36 pm
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_arcade:
Variable <unknown_object>.rot(100012, -2147483648) not set before reading it.
at gml_Object_obj_arcade_StepNormalEvent_1 (line 1161) - rot += asdir_rate
############################################################################################
Alguém sabe por que esse ero acontece? O código que faz esse erro aparecer é esse:
Mas se não tiver o "rot += asdir_rate" não acontece nenhum erro.
Mudei o 'rot += asdir_rate' pra 'id.rot += id.asdir_rate' e funcionou. Dentro do 'with' isso deveria ser inútil. Alguém tem ideia do pq disso acontecer?
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_arcade:
Variable <unknown_object>.rot(100012, -2147483648) not set before reading it.
at gml_Object_obj_arcade_StepNormalEvent_1 (line 1161) - rot += asdir_rate
############################################################################################
Alguém sabe por que esse ero acontece? O código que faz esse erro aparecer é esse:
Código: Selecionar todos
with(obj_asteroid_rockb)
{
rot += asdir_rate
if x > room_width + sprite_width/2
{
x = 0 - sprite_width/2
}
if x < 0 - sprite_width/2
{
x = room_width + sprite_width/2
}
if y < 0 - sprite_height/2
{
y = room_height + sprite_height/2
}
if y > room_height + sprite_height/2
{
y = 0 - sprite_height/2
}
}
Mas se não tiver o "rot += asdir_rate" não acontece nenhum erro.
Mudei o 'rot += asdir_rate' pra 'id.rot += id.asdir_rate' e funcionou. Dentro do 'with' isso deveria ser inútil. Alguém tem ideia do pq disso acontecer?