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

Sooooo I was able to buy some actual Pokemon cards, I got 2 packs and a tin.

Here's the 2 Phantasmal flames packs.

Looks like Mega Sharpedos my best pull, its so shiny!

Gonna open the tin with my nephew tomorrow at lunch

Seond to last 10 pull.

Ive got a couple more 10 pulls to do, but omg we can finally open multiple mail packs at once!

Portrait of Jarmy

32 colours

160 x 160

OK! This is the last 10 pull till the next pack gets released

creature that lives in the depths of the ocean hunts sailors who explore the depths thanks to its appearance resembling a submarine

And another 10 pull!

I let my nephew one the packs so I kinda lost track but I think from 4 tin packs + 1 extra I got:

35 Common

8 Uncommon

4 Rare

1 Double Rare

2 Illustration Rate

1 Promo

Really happy with those Illustations!

Project(s) & Health Update

I'm alive! I have been resting a lot after the brutal game jam crunch... We didn't make the deadline, but the team is very invested and determined, so we'll finish the demo-

Another 10 pull!