Wednesday, May 9, 2018

Minor tweaks for various things

I did a bunch of fairly uneventful things. They're actually pretty cool... to me. But nothing worth a screenshot.

I fixed the movement target reticle so that if you drag your mouse it'll drag with it. And it used to pop up an additional time after you'd already have reached your desired location. It doesn't do that anymore.

The I had a bit of script in the player movement that determined if your player was stuck behind something and so you can't get to your desired location and it would stop moving. But it worked off of how long it had taken you to get to a place. So you could be walking for a very far distance and it would consider you stuck because you hadn't reached your destination yet. It was a fairly easy fix, I just added a velocity check. Now it works well regardless of how far you're walking.

Last but not least, I did get the items XML in the game! This is very exciting. It was weird, since you have to work with the Item Editor and some .dll file in conjunction with Unity. But I got it in, and then changed all the items in Unity to reference the item XML item ID and it's working well! I also harnessed the power of enums for the wearable items slots, which makes it so much better than using an array of booleans for each wearable item slot, when I get to wearable items eventually.

No comments:

Post a Comment