January 2025

S M T W T F S
   1234
56789 1011
12131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags

December 18th, 2024

cloudy_brains: programming hard,,, (gamedev)
Wednesday, December 18th, 2024 02:05 pm
Didn't get much done yesterday, but I got plenty done today!

For one, I figured out something on my own; how to format a text box to reflect the total number of Kibble Points. Before, I had a number just kinda floating there underneath the button, but now the number is reflected in a lil box at the top left corner underneath where the name will be placed.


...Don't mind how it looks, I'll make it look all fancy once the base programming is done. :'D

Anywho! After that success, I tried again at attempting to figure out how to program the "idle" part of this idle clicker. And failed. I might need to just bite the bullet and ask for help from a UE5 BP forum or something, because apparently both the "Tick" and "Timer" events don't work the way I thought they would. Buuuut... The upgrade I made can still be used. Instead of adding one point per click, I've set it to multiply the base number, so now buying the upgrade will make the 1 a 2, buying another will make the 2 per click into a 4, so on and so forth. So now we have this!


Also, for the box that doesn't seem to do anything, I'm still trying to figure out how to only have the button enabled if you have enough points but it's not cooperating with me. Rude little thing, but I'll keep chipping away at figuring out how to make it work. It won't elude me forever!!

Then I noticed something. I'm using a lot of separate "IM Game Instance Ref"s for the floating variables. I counted seven in total on this Upgrade UI alone, so I decided to cut down on them. First I tried linking all of them to the same and... uh... It was a mess. Lines everywhere, more than usual and not in a way that looked good. So Plan B came to be! I went with a middle ground of having every 2-3 variables linked to the same reference, so now it's a little cleaner while also bumping down the amount of references from seven to three. Not perfect, but much better! Now it looks like this, and I've done the same with the other parts too.


That's where I decided to stop for today. Doing this took about... Oh, 3.5 to 4 hours? Mostly because I was trying to look up how to add the timer addition, make the button work the way I want it to, etc. Still, the basis is almost done! Once I get the "idling" part all set, I can begin the real work on it, such as the assets. Right now I just have a test image for the button, but that'll likely be the first to be changed into an actual bag of kibble.

I think, once the actual clicker part of this game is done, I'll work out the other half of the gameplay loop. That's the actual caretaking part where you look after the cat that King Ramses entrusts to the player, which will be... an interesting time to code, at the very least. :'D But that's all for this log entry for now~!