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

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

Booo. Opened 2 packs of Chaos Rising, and 2 Korean packs of something XD, got nothing! Best card was this Pyroar card he pulled.

We did some trades too.

Woop woop!

This week's Fan Art Friday celebrates Plants vs. Zombies! Accept the quest in your quest log to get started.

CHARGED STICKER APPRECIATION POST!

Making sure I don't forget till the end of the month again, thank you all so much for the support! I hope you have an amazing June!

Please take care, stay safe out there, and keep being awesome!

The Blight has been buried for over 800 years...

What secrets lay intertwined amidst Eireos' ruins...

The journey begins July 21st!!

#pixelart #gamedev #indiegame #indiedev #jrpg

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

So urm, are charged stickers bust? Same on PC and Mobile

@gamejolt

Get yourself some fellas today! 👨‍🌾

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

Live video of my current miserable existence

someone PLEASE kill the sun