F
Frignate
Guest
I'm new to gamemaker and trying to make a shoot'em up game where enemy planes have a ramdomized path(out of 4 ones) each time but in this code, planes stay still. it works fine with just the path_start code.
Code:
randomize();
var path=random_range(0,4)
switch path
{
case 0:path_start(Enemy_path_1,30,path_action_stop,0)
case 1:path_start(Enemy_path_2,30,path_action_stop,0)
case 2:path_start(Enemy_path_3,30,path_action_stop,0)
case 3:path_start(Enemy_path_4,30,path_action_stop,0)
}