Skip to content

Using Paths alongside a Solid object to move a platform around in a specific way? #48

Answered by TrianglyRU
ManeaterMildred asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, so, according to the GameMaker docs:

When following a path, an instance's position is updated after the Step event, so during the Step event its x and y position will be the same as its xprevious and yprevious (unless manually modified in the Begin Step or Step events).

This means, we should do a workaround. Simply using End Step event won't work correctly due to how GameMaker executes events between objects, TLDR; we need to make sure it is somehow run after the Step Event but before c_framework's End Step Event

To do this, open c_framework, End Step, and add the code below right before the with obj_player loop (so it will be basically the very first thing End Step will do there):

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ManeaterMildred
Comment options

@TrianglyRU
Comment options

@ManeaterMildred
Comment options

@TrianglyRU
Comment options

Answer selected by ManeaterMildred
@ManeaterMildred
Comment options

@TrianglyRU
Comment options

@ManeaterMildred
Comment options

@TrianglyRU
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants