2 years 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

On my way back from this week's Gigantamax #pokemonGo day.

We got wet but I was able to catch 2 Cinderace.

DING!

Happy Pride everyone! I hope you're all having an amazing month!

I have no investment in Deltarune, but please for those that do, be careful with the spoilers ok?

I know you're all excited but please take care not to spoil the game for others that are also looking forward to it.

Thank you, and enjoy the game!

Our first Pride Month quests have begun! 🏳️‍🌈

Celebrate with us by completing these quests.

Unlock basic Pride backgrounds! Get Pride sticker packs! Earn Pride trophies!

Eternal Darkness 2.

#GJAsks

After 7 long years, the wait is finally over. Chapters 1-4 of DELTARUNE are out now!

Celebrate the parallel story to Undertale by completing these quests.

Could I interest anyone in half a dozen perfectly normal eggs.

Nothing wrong with them.

AT ALL.

I've finally gotten around to changing how light flicker works.

I prefer it randomness but enough people mentioned they didn't like it X'D

Also there was some epileptic worries.

@AnubiArts is a Jolter to Watch, pixel/low-poly artist, and a creator of Art Weeklies! Follow @AnubiArts on #GameJolt before the quest ends on June 3 and you'll get Coins!

Charge Sticker Supporter Appreciation Post!

Thank you all so much for your support, it truly helps me out so very very much!

I hope you all had an amazing May, and have a fantastic June! Please take care and keep being awesome!