Master Cabalist
Member
Hi
If I want an object to move along a path, I start path_start in the scope of the object, right?
If that's true, then can I have multiple objects use a with and path_start to have multiple objects follow
a path?
For example,
If I want an object to move along a path, I start path_start in the scope of the object, right?
If that's true, then can I have multiple objects use a with and path_start to have multiple objects follow
a path?
For example,
Code:
draw_trail_of_bats--;
global.spacing_myTimer += 0.001;
if (global.spacing_myTimer > 1.0)
{
global.spacing_myTimer = 1.0;
}
global.spacing_myTimer2 += 0.001;
if global.spacing_myTimer2 > 1.0
{
global.spacing_myTimer2 = 1.0;
}
global.spacing_myTimer3 += 0.001;
if global.spacing_myTimer3 > 1.0
{
global.spacing_myTimer3 = 1.0;
}
if (draw_trail_of_bats <= 0)
{
//inst =
//path from grasslands to forest?
inst = instance_create(300, 371, SentryBatWalkMap);
with (inst)
{
path_start(path19, 5, path_action_stop, 0);
show_debug_message("Spacing myTimer:" + string(global.spacing_myTimer));
show_debug_message("Path Position: " + string(path_position));
path_position = global.spacing_myTimer;
show_debug_message("Updated path_position" + string(path_position));
path_end();
}
draw_trail_of_bats = room_speed;
//a path from forest to snow
inst2 = instance_create(378, 354, SentryBatWalkMap);
with (inst2)
{
path_start(path38, 5, path_action_stop, 0);
show_debug_message("Spacing myTimer:" + string(global.spacing_myTimer2));
show_debug_message("Path Position: " + string(path_position));
path_position = global.spacing_myTimer2;
show_debug_message("Updated path_position" + string(path_position));
path_end();
}