3 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

Happy New Year everyone!!

Geez, 2026!!

Bit of a short one this month. I took things easy over the holidays, partially because of the time of year but also the heating broke and granny had a few bad days so she needed more focus.

Charged sticker appreciation post for December!

Thank you all so very much for everything this past year, I hope you all had a great one and have a fantastic 2026!

(WOW, three way tie for first place!!)

TCGP Has the Gold packs back and I need like 150+ of them so I did 12 pulls, got some good ones!

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

I wish I had more to show recently but I've been taking it easy over the holidays and what I have been working on is just optimisations which doesn't translate to gifs so well

Mae Borowski is the main character of Night in the Woods! It's an adventure game that tells the story of her return to her hometown of Possum Springs. She was confirmed as canonically pan in a social media post by the game's creator Scott Benson.

PIKACHU NOOOOOoooOOOOo!!!!

I want that cactus card!!

Finally! It has taken me 17 days to get this from the Wonder Pick, I would have gotten it sooner but I pressed the wrong place not realising my phone screen wasnt locked (I always press the same location every day)

Finished the set too! (Except shinies)

The Knightling launches on August 28! Wishlist it now so you don't miss out: https://bit.ly/KnightlingSteam

To celebrate the game's impending release, we've added The Knightling Pack and The Knightling Community Pack back to the Shop!

because I wanted to?

#Devruary