GML
if place_free(x,y+1)
{gravity = 0.5}
else
{gravity = 0}
if keyboard_check(vk_left)
{
sprite_index=ken_walk_left
x-=7
}
if keyboard_check(vk_right)
{
sprite_index=ken_walk_right
x+=7
}
if keyboard_check_released(vk_left)
{
sprite_index=ken_stance
}
if keyboard_check_released(vk_right)
{
sprite_index=ken_stance
}
if keyboard_check_pressed(ord('Z'))
{
sprite_index=ken_punch
}
if keyboard_check_released(ord('Z'))
{
sprite_index=ken_stance
}
if (keyboard_check(vk_down))&&(keyboard_check(vk_up))&&(keyboard_check_released(ord('Z'))
{
sprite_index=ken_big_punch
}
if (keyboard_check_released(vk_down))&&(keyboard_check_released(vk_up))&&(keyboard_check_released(ord('Z'))
{
sprite_index=ken_stance
}
I wyskakuje mi błąd:
COMPILATION EROR in code action
ERROR in code at line 32
{
at position 2 symbol ) exepted