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

Happy GOBtober, and happy birth month everyone! I hope you're all doing well!

Here's what I got done in September!

Original post here: https://www.patreon.com/posts/138550640

Charged Sticker Appreciation Post for September! Thank you all so much for your support, it means the world to me!

Oh wow, we got a 3 way tie for first place!

I hope you all are doing well and have an amazing GObtober!

oh no!

Had to do a rework of draw ground code, and sort out a patch for existing save files to deal with this issue.

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

#gjbroadcast

Re-worked the wall code for Caves and Ruins so I can have both tilesets at once, and made it so walls can't generate over the Teleporter/Stairs. Now I just need to figure out how best to stop areas getting blocked off (since you can only mine ore walls)

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

There we go! Features now effect which floor layout parts are used! This was already the case for floors with only one feature, but since I added the multipart Ruins all parts were the same (aka all with water around them).

Adding particles to Grass and Tree interactions.

[shitty slow tablet gif]

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.

They got new cards in Pokemon TCGP, Let's do a 10 pull!