X and Y offset with Sprite collision boxes
-
X and Y offsets appear to only be applied to a sprite collision box if the sprite moves. If a sprite remains stationary, the offsets are not applied. I have shared a WIP of my first game jam submission Charge, with the collision box visible, and the offsets are not applied until you move the player sprite. ID: NE953MND9F, currently pending.
-
@Dinocoder There are a few bugs with sprite collision boxes which are all being addressed in the next patch, I think we have this one covered bu I will look into it!
-
Isn't it that it doesn't update the visible collision box until you call any of the checkCollision commands?
-
Calling updateSprites() is usually the missing piece. It is a bug however that the collision offset properties are not applied unless updateSprites() is called, and this is addressed in the next patch.
-
@Dinocoder duplicating the same line of code twice will apply the offset it's a minor fix for now.