You are browsing as a guest. Sign up (or log in) to start making projects!

5h 26m 23s logged

I Am Collected (Devlog 6)

I got collectables done, took a little more time than expected.

I might have lied.

In my last devlog, I figured that I might be able to post two devlogs in one day because the following system was going to be pretty simple, there for doable in the rest of the day. It’s been a week.

Here is the rundown

Collectables (just an object marked with Collectable) spawn on top of objects marked with CollectableLocation. Than collectables that are clicked on are removed and the resource Collected is bumped up by one.

Burnt out

After posting the last devlog, I got right to work making the collectable objects and the placement system. It wasn’t awful, the only thing I kinda struggled with was getting a random number to than get a random CollectableLocation. (rant ends at next paragraph) What was awful is that I spent 3 and a half hours that day coding. I know that might not be a lot for some people. But I was than burnt out for the next 4 days, until today. I can not tell if that was my own fault or if I was influenced by exterior motives… Either way, lesson learned!

Observation

Next I had to detect a mouse click on a collectable. That was difficult. I tried to use Bevy’s observers, but I could not for the life of me figure out how to get them to work. So, I made my own system to guesstimate where the mouse is in the game world. It’s imperfect but it works at least!

End

With a few more modifications and additions, I had created a collectables system! Next, I will make a Blood Axolotl :much-screaming-cat: !

Until next time!

0
12

Comments 0

No comments yet. Be the first!