• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Object won't follow path!!! D:

C

colmkat

Guest
objMenu
CREATE
global.begin_path = 0;
menu[2] = "New Game";
menu[1] = "Continue";
menu[0] = "Exit Game";
menu_cursor = 2;

STEP
case 2: SlideTransition(TRANS_MODE.NEXT); global.begin_path = +1

Case 2 brings me to the next room where:
objHubPlayer
STEP
if global.begin_path = 1
{
path_start(path1, 2, path_action_stop, true)
}
if path_position = 1
{
path_end()
}
if global.begin_path = 2
{
path_start(path2, 2, path_action_stop, true)
}
if path_position = 1
{
path_end()
}




Yet objHubPlayer does not follow any path. He teleports to where the path starts but doesn't go
Frowneyme.PNG frownyme.PNG frwoneryme.PNG
 

TsukaYuriko

☄️
Forum Staff
Moderator
Please don't post screenshots of code. It is not possible to read some of the code in your screenshots due to the image quality. Post it as code instead.

For further information on how to properly post code, please take a look at our guide about how to post code.
 
Top