Windows Help a while command for my code that is for spawning objects is not working

K

KnoxRobo

Guest
Code:
while (distance_to_object(obj_player) < 100);
{
    x = random(room_width);
    y = random(room_height);
}

image_speed = 0;
image_index = irandom(2);

direction = random(360);
speed = 0.5 + random(2);
the thing witch says while (distance_ to_ object)
is acording to the game when i run is "a malfored while statment" please help
 
Top