7 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

I...I think the Fish Pond is working...

If you see this, post a bird.

HECK

and I must stress this

YEAH!

Building Menu rework is DONE.

Correct indicators for placing and moving stuff, code cleaned up, redundancies removed, duplicate code turned into a script for reuse.

Madeline is the main protagonist of the mountain climbing platformer, Celeste. The game has been praised for its visuals, gameplay, and introspective narrative. The game's creator Maddy Thorson confirmed that Madeline is trans in 2020.

Woop!

Dive into the cozy post-apocalyptic open world of Critter Cove!

Gentleman Rat Studios (@GR-Rob ) describe it as “a little bit Animal Crossing, a little bit Stardew Valley. Maybe even a little bit Windwaker, too."

Wishlist the game: https://bit.ly/CritterCove

YUS!!

I hope you're all having a great weekend!

Everytime. Everytime i have some issue!

This time I couldn't find the group, tried to cut them off and went the wrong way! Manage to get a couple Gigantamax Inteleon, then we got rained out 😅

Welcome @YahahaGames to Game Jolt by giving them a follow!

They're an international publisher dedicated to transforming indie games into global successes.

Check out their game Midnight Special here: https://bit.ly/midnightspecialgj

Woop woop!

#pridejolt