witam,
mam taki problem:
variable name expected fatal compilation error ... bla bla bla
mam kod:
if (global.gh=1) && (global.spirit>10)
{
magic = true
global.spirit-=10
image_speed=0.5
alarm[0]=24
if (sprite_index = yoh_stand_left) || (sprite_index = yoh_run_left)
{
sprite_index = yoh_amidamaru_left
instance_create(x-45,y-35,obj_amidamaru_left)
}
else if (sprite_index = yoh_stand_right) || (sprite_index = yoh_run_right)
{
sprite_index = yoh_amidamaru_right
instance_create(x-15,y-35,obj_amidamaru_right)
}}
a wczesniej mialem tak: i dzialalo:
if ([b]gh=1[/b]) && (global.spirit>10)
{
magic = true
global.spirit-=10
image_speed=0.5
alarm[0]=24
if (sprite_index = yoh_stand_left) || (sprite_index = yoh_run_left)
{
sprite_index = yoh_amidamaru_left
instance_create(x-45,y-35,obj_amidamaru_left)
}
else if (sprite_index = yoh_stand_right) || (sprite_index = yoh_run_right)
{
sprite_index = yoh_amidamaru_right
instance_create(x-15,y-35,obj_amidamaru_right)
}}