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

Oh thank frick for that! I thought I missed a day because of daylight savings time

Last 10 pull to use up my free points

Oh actually, one more 10 pull because the daily check in gave me enough to do it!😅

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

Totally forgot to post this, thanks so much for the support last month! I really appreciate you all!

(ugh laptop was struggling to record this )

Instead of doing #FanArtFriday, enter to win Opera GX’s #FirstStandArtContest!

This is your chance to win $5,000 USD! 💸

Art is your weapon. Garen is your champion.

Enter here: https://bit.ly/FirstStand

(We've included Garen variants for inspo!)

HAPPY April first Mimikyu day!

Or is it?

PSA: Please do not use small suns to cook potatoes in a campfire.

Play @pm-studios ' Bandit Trap Open Beta!

Grab your rocket chairs, vacuums, and toilet tornadoes! Report one more time for our final beta! Live through March 23rd 6 am CET.

Complete quests based on the game!

Play the beta: https://bit.ly/BanditTrapBeta

CHONK-Y-CHU!

CHONK-Y-CHU!

CHONK-Y-CHU!