6 months ago

I've been having a mess around with how Paths work in Game Maker and I don't think I'm going to be able to do Minetracks very easily. At least not ones you can place yourself.


It's all fine having a start point and an end point, but adding a new point in the middle doesn't seem to be possible without having more information about what the player is trying to do.

I can add new points to the end easy enough.

But adding a new point causes any object moving along the path to jump slightly, since it's position is relative to the path length.

minecart_paths.gif

You can add points before an existing point, but I don't think I can calculate what that point is based on new point location alone?
I'd have to do some sort of check for nearest point?

Hmm

Here I'm running through all the points in the path, if it finds a point closer to the mouse click it will insert the new point before it.

minecart_paths2.gif

This works, but you can't place a point before the first point, and placing one too close to the last point reorders the whole path

minecart_paths3.gif

I think I might have to use a conveyor belt method instead, where you place objects or assign grid values as track and direction and touching them pushes you in that direction?

You'd continue to move in that direction until you hit a stop block, or a different direction block.
To save objects I'd have to check adjacent sides for existing ones that would move you in the same direction. Although Grid method would avoid that I think.

pokemon_spin_kanye.gif


2 comments

Loading...

Next up

Charge Sticker Supporter Appreciation Post!

Thank you all so much for your support, it truly helps me out so very very much!

I hope you all had an amazing May, and have a fantastic June! Please take care and keep being awesome!

Big monkey got!

DING!

The Cryptmaster Anniversary Update is here! 

@akuparagames saw that players loved the in-universe card minigame "Whatever." So for this update, they've put more effort to make it its own Roguelike game mode!

Try the FREE DEMO: https://bit.ly/CryptmasterSteam

Eternal Darkness 2.

#GJAsks

After 7 long years, the wait is finally over. Chapters 1-4 of DELTARUNE are out now!

Celebrate the parallel story to Undertale by completing these quests.

Time to fight a giant donkey konga!

I've finally gotten around to changing how light flicker works.

I prefer it randomness but enough people mentioned they didn't like it X'D

Also there was some epileptic worries.

Let Them Come: Onslaught by @Tuataragames has come to Game Jolt!

Celebrate by completing our quests!

Play the FREE demo of Let Them Come: Onslaught on Steam: https://bit.ly/LTCOdemo

I have no investment in Deltarune, but please for those that do, be careful with the spoilers ok?

I know you're all excited but please take care not to spoil the game for others that are also looking forward to it.

Thank you, and enjoy the game!