Game
Tsalagi

5 months 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

Mirror, mirror, on the wall

Who's the richest of them all?

This guy. Because he has two fridges, two microwaves, two chest freezers, and four ovens

And let's not talk about the luxury bathroom

The wolf is fixed! I repeat, the wolf is fixed! Pathfinding has resumed working! Save box also got a graphic so it's no longer pink. Ꭽ is for ᎭᎵᏏᏅᏓ, or "Save"

Hey, Mr. Guy, can you hold this for me? In your face? The hatchet exists now and it does damage. Also started work on how battle starts, if you attack first, the enemy attacks first, or you just run into each other

Happy #WIPWednesday!

Are you working on a game? A song? Something else? Tell us in the comments!

Basically just made today a Database day, so here's a screenie of the player talking to the local fisherman

🕹️ Enter The Highrise Game Jam Before It Ends On May 5! 🕹️

Learn the rules here: https://gamejolt.com/c/gamedev/highrisejam

Learn how to make a world on Highrise (which you MUST do to enter the jam) here: https://gamejolt.com/p/the-highrise-game-jam-is-underway-watch-t…

The jam has cash prizes! 💸💸💸

This would be hilarious if it weren't so annoying. Copy a block of code from one spot to another and now the wolf runs away from me. No change in navigation target, code is the same, but now it's being repelled instead of attracted I don't get it

Think she'll be mad that it's taken me so long (at least a few months) to get these things?

Highrise Game Jam Reminder: In order to enter to win the Jam, your game must be created in Unity and submitted using the Highrise Studio Hub.

Learn all the deets about the jam at https://gamejolt.com/c/gamedev/highrisejam

Did some rough level work in the cave system. Got the long tunnel, and this one is the first puzzle place (if anyone is familiar with the four stairs/doors puzzle in Paper Mario 2, this is going to be very similar).