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

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!

No luck on getting any boxes but I managed to get a couple booster packs...no hits. Also a couple cards I bought online arrived! They're so cool!!

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!

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

Happy Pride everyone!

@JotaDev is a Jolter to Watch and the most crazy gamedev in all arround the world! Follow @JotaDev before the quest ends on May 26 and you'll get Coins!

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!

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

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

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...