Game
Tsalagi

1 year ago

Okay, I'm done for the night. I'm too mad Decided to do some work on the followers so they turn and move a little better and managed to break them entirely. Screw it. I'm going to go play a game that works


Originally just used a NavAgent so the follower would use pathfinding to follow the player. Nothing fancy, just got the job done for basic demonstration purposes.

Attempt 1: State Machine similar to the player. Rather illogical given that they are only following the player and the battle map handles most of those actions.

Attempt 2: Rewrite the NavAgent to be more sophisticated in how it handles pathfinding and what to do when it gets too close or too far from the player, also flipping between face_left and face_right appropriately.

With my attempt to use the State Machine, upon map loading, the player would suddenly get launched into the abyss for unknown reasons. Going back to the NavAgent basically solved that problem, but then it seemed to think that the follower was loading in before the NavMesh it would use to calculate distances etc., so it wouldn't do anything but throw errors. It would, however, continue to flip the follower face_left or face_right as appropriate.

Get frustrated, decide to go back to the nice, safe, easy code I had at the beginning, the non-flipping NavAgent I've been utilizing so far.

It no longer works.

I changed nothing in the NavMesh. I changed nothing in the player. This was the NavAgent that has been working and doing just fine for weeks. Now it doesn't work.



0 comments

Loading...

Next up

Lots of modeling the last few days. Got some houses made, remade some of my terrain blocks (rebuilt the harbor), and started on the NPC models. Also worked on the battle system and the follower system, now with 1/10th the code but 10x more efficient

Behold my beautiful canoe!

Working on battles. A little different than last time, aesthetically, but still the same basic idea

Our 2024 Advent Calendar has opened! Day 18: @Otis_Le_PoOtis is the Creator of Bondeeā€™s Barnyard and posts updates about their dev journey and their work on the sequel!) Accept the quest and give them a follow to get Coins and a seasonal sticker!

Decided to do some work on the save/load. Name, Chapter, and even Total Play Time CORRECTLY FORMATTED Will work on the chapter banners later. Free time formatting code below

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Battle State Machine is working Player chooses what to do, enemies choose what to do, and they even have variable rates of attack/defend/flee. Next step will be to actually start dealing damage

Ah, yes, Grandpa and Grandma's old farmhouse, with a million rooms, basement full of mason jars, and the old '57 Chevy in the garage

I mean, not my Gramma and Grampa, but someone's, right?

@Miles_Games is a Jolter to Watch! They post great game dev updates about the holiday-themed platformer TEAM SLAY-BELLS! Follow them before the quest ends on December 24 and you'll get Coins!

Doing some designing of the main village, mostly so I can get some connections in and get the next part of the opening cutscenes roughed in.