• 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!

GML Performance question

zampa

Member
Is it more efficient( from a memory stand point ) to make platforms move through paths or code?

Thanks for the answer and happy holidays.
 

jo-thijs

Member
Is it more efficient( from a memory stand point ) to make platforms move through paths or code?

Thanks for the answer and happy holidays.
Depends on the path and on the code.

Neither will have a significant impact on memory however.

You should rather choose the approach that's most flexible to you.
If your object won't always follow the entire path (a moving platform may revese diection when colliding with a wall), go with code.
If you have a parameterized path (paramete of path size for example), then go with code.
If you have a complex path with little regulaity, then go with paths.

In your case, I'd first try out code.
 
Top