Create-Code:
global.tura=0 //0 - tura gracza; 1 - tura komputera
End Step-Code:
if(global.tura=0)
image_angle = point_direction(x,y,ja.x,ja.y)
if(keyboard_check_pressed(vk_space))
{
with(ja)
{
instance_create(x,y,bron)
}
global.tura=1
exit
}
if(global.tura=1)
{
with(komputer)
{
instance_create(x,y,bron)
global.tura=0
exit
}
Wyskakuje błąd:
FATAL ERROR in
action number 1
of End Step Event
for object kontrola:
COMPILATION ERROR in code action
Error in code at line 19:
}
at position 2: Symbol } expected.
Jak to naprawić?