Work Post

Aug. 18th, 2017 03:06 am
relee: Picture of Relee Starbreeze, Wizard (Default)
[personal profile] relee
3:07am - Getting an early start today, I guess. It's not five or six am, it's three. Well whatever. My brain's a lot fresher today and I've already been thinking a bit about my problem. I'm only just getting set up now though so it might be a bit before I get into the meat of it.

3:37am - Things are going slow because I've gotten into a conversation on Discord about anime and it's really distracting. But it's also really enjoyable and bringing up my mood so I'm not mad. <3

4:08am - Well it looks like that's finally done. Now let's see if I can come up with something.

4:25am - Slow starting. I'm having trouble getting settled. Got up for a coke refill. Now it's twenty minutes later.

4:34am - Some folks are starting some trouble at the McDonalds. :/ I'm going to zone out for a while.

6:30am - Two hours later... Back to work I guess.

6:47am - Damnit, now I'm getting angry at myself. All that time off playing a game and when I sit myself back down to work again I'm still not doing anything.

The real problem I'm dealing with is how to inform the tag player that it's sensed something. There are so many ways to get that message across the system and I don't know which one to use.

7:01am - I asked on the Game Dev League Discord and got a bit of advice but I'm still not 100% sure it's the best way to do things. Well, I guess it's something to try...

7:09am - Geez my brain feels fried now. I'm not sure what anything is in my game now. Bleh.

7:40am - I decided to get something to eat and watch an episode of Boss Keys I hadn't seen yet. I'm still not sure what anything in my game is right now. This project hasn't been as easy as I expected. Or maybe I just haven't been as proficient as I thought I was.

8:20am - I'm finally getting into the grove a bit, only to realize I've got a mess on my hands. I've got an interface with initialized properties for example. I'm pretty sure you're not supposed to do/have that.

Anyways to clear things up for the future, I've got a script called TagPlayerLogic which will eventually go on my tag player prefabs. It handles interfacing with the Utility AI to determine what behavior function will be run each tick. So, I've figured out my point of confusion. I was operating on the false asumption that the characters would react to their senses by entering a behavior, that's not what I was doing from the start. Instead, the behaviors need to poll the senses to see if they sense anything, and then react to that within the behavior function.

So I'm going to get rid of what I had previously developed for senses and create new scripts for them. They were built on a false understanding.

So here's what I'm going to do. I'm going to make a script called Sensor. It'll be a generic sensor, used for both the sight cone and the hearing/looking back sphere. It'll be strongly based on the script from the youtube tutorial I found.

9:05am - Okay I've written up the Sensor script. Now I just need to put a couple of them on my tag player.

9:33am - Well I'm making progress but I'm running into a new problem. The Properties of It and LastIt aren't enough to determine which of the (currently) three behaviors the Tag Player should follow, Chase, Flee or Wander. They also need properties for determining if they can see the player who is it, or a player who isn't it.

I'll have to sort that out next time though. I've been here at the McDonalds for nearly seven hours, and I need to go home and help Rob do the groceries.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 22nd, 2025 10:10 pm
Powered by Dreamwidth Studios