1 year 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

I always try to add features to the game when events happen in real life. Now I've gotta figure out what I'm adding for Halloween and the holidays.

Last year I added Spooky Cardboard Cutouts that you can use to take screenshots, and Cauldrons?

While I do code stuff, have a spooky pixel art repost!

Got my cheap pizza for tomorrow

Also a can of pineapple rings to put on it

Play our game, Bloodless, and complete the Help Tomoe quest to unlock the Bloodless sticker pack!

Start the quest: http://gamejolt.com/#quest

Game Jolt has given out all of their free Steam keys!

Is my birthday today...

Please make sure you eat some cheese!

Hope you all have a fantastic one!

Happy Video Game Day! 🎮

Celebrate by completing our quests!

(They'll be in your quest log until September 19th.)

Coded a 9slice system and got an expandable rug set up for the Smithy! Next make a nicer floor tile for the rest of it, I think I might just use the Rockland floor tile, I don't like how this floor is broken up into actual tiles.

Happy Sunday everyone! Hope you're all well

Things got messed up so I had two lifts arranged to lunch lol all good now.

Think there's extra special dessert today since my birthday is on Tuesday..

Please look after yourselves and have a fantastic day!

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

#ScaryGame

Eternal Darkness.