1 year ago

Fixed a bug with Animals; I changed their draw code to clip off the bottom of the sprite when In water, but this changed where the origin point is. All good now!
(please ignore how hats float, they need a new sprite)

Fix in the article

#gameDev #goblins


The Fix:

Add a couple temp variables
var _xO = (-sprite_width/2); ///Puts us back to the middle)
var _xSq = ((1-xSc)*(sprite_width/2)); ///Adjusts the offset based on how much the sprite has been squashed. When not squished this is 0, as it squashes this increases and keeps the sprite centre.

Then for the draw x position in draw_sprite_general use: x+_xO+xSq



2 comments

Loading...

Next up

Urmmm

[uses temp value 6 to store the data]

ERROR, value cleared by placing Building.

[uses temp value 5 to store the data]

GAME CRASH, value used for valid Building placement indicator.

[uses temp value 4 to store the data]

You now can't confirm Item selection

I think next I should do the Enchanter UI.

I never really did a proper one, just enough to to test the system out. Probably have to do a rework of that too... dang it X'D

but now? slep

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Happy Sunday everyone! I hope you're having a great day!

Lunch was great, mam made cake.

Had to rush out when I got back to catch some Pokemon for my nephew

Now it's coffee and gamedev time!

Please look after yourselves and have an awesome week!

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Expanding NPC buildings is now fully upgraded to the new system where you can change which Item Stack you use for the Components! Even got some error wiggle in there for feedback!

I always get the sick Pokemon

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

I think the Building/Expanding/Crafting UI rework is all done?

It's all working and looks good enough. Next time I update it I'll have to add button prompts.

(whoops, that Error wiggle is slightly wrong! )