Brakuje ci 1 } w tym kawałku kodu:
with (aa)
{
if wsiadanie=0
{
image_angle=direction
direction = point_direction( x , y , mouse_x , mouse_y ) //
// poruszanie
if ( point_distance( x , y , mouse_x , mouse_y ) > 5 )
{
s = 5 // prędkość poruszania na boki
if( keyboard_check( ord('A'))or keyboard_check( vk_left ))
{
x += lengthdir_x( s, direction + 90 );
y += lengthdir_y( s, direction + 90 );
}
else
if( keyboard_check( ord('D'))or keyboard_check( vk_right ))
{
x += lengthdir_x( s, direction - 90 );
y += lengthdir_y( s, direction - 90 );
}
if ( keyboard_check( ord('W') )or keyboard_check( vk_up ))
speed = 5
else
if ( keyboard_check( ord( 'S' ) )or keyboard_check( vk_down ))
speed = -3
else
speed = 0
}
else
speed = 0
}
kasuj sobie po 1 "{" i 1 "}" to zobaczysz.