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

...apparently my nephew got some cards on the way home and pulled this. Ungraded value $70/£50

Every Pokemon is someones favourite, and now there's a place where people can say why they love each of them! https://favoritepokemon.vercel.app/

PHEW! I thought for sure I'd missed a day!

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

Happy Pride everyone!

Working on a variety of things for my game! 🌱🛠️ #indiegame #gamedev #videogames

I forgot to post this the other day when the new packs came out. Got some real cards to open later with my nephew too...

I'm super late on this this month, but thank you all so much for the support.

You are all amazing and I really can't express my gratitude enough.

I hope you're all doing well. Please stay safe and keep being awesome!

Get yourself some fellas today! 👨‍🌾

Tiny Terraces is 25% off on Steam. #indiegame #gamedev #videogames

Once my grans been picked up for the day centre I'm gonna go see if I can get any Pokemon cards since the new set drops today.

I wanna get one of the Elite Trainer Boxes for my nephew's birthday...and maybe a 3 pack of cards for myself.

Wish me luck!