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

No favourite game, just a favourite series.

#MyFavoriteGame

June Game Dev Progress (2025)

Hey everyone! I hope you're all doing well! Kind of a super short one this month as I lost a couple weeks to moving out and didn't have a computer.

Another Pokemon Go level attained!

Also new cards from TCG Pocket!

Madeline is the main protagonist of the mountain climbing platformer, Celeste. The game has been praised for its visuals, gameplay, and introspective narrative. The game's creator Maddy Thorson confirmed that Madeline is trans in 2020.

Anyone else got a phantom quest indicator?

The red dot keeps appearing, but i have no new ones or updates to do.

GO AWAY!

Dive into the cozy post-apocalyptic open world of Critter Cove!

Gentleman Rat Studios (@GR-Rob ) describe it as “a little bit Animal Crossing, a little bit Stardew Valley. Maybe even a little bit Windwaker, too."

Wishlist the game: https://bit.ly/CritterCove

(Urm, I just found this in my drafts, so I'm not sure if I posted it? Meh, it'll do for now! Progress post coming later once I'm sure GameJolt is stable! )

Woop! The Goblins now have Swords!

WHAT THE HECK!!? Why would you do that!????

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.

Somewhat delayed thanks to @MomentaryUnicorn for becoming a Ko-fi supporter.

You are amazing, thank you so much for the support. It really helps me out a lot!

Please everyone, go check out her cute pixel art!!