Join GitHub today
Issue with background image vertical alignment in single-row reel #188
The situation is this:
The calculation in question is (line 1358):
...which in the case of a horizontal scroller defines the vertical background position offset.
The implication of the above is that if
Here's a fix which works for my specific situation:
But I don't really understand the reasons for the calculations in that line, so the above might screw up other situations...
I'm trying to come up with a test evidence, but so far it all fits. Let me explain what is happening in the above calculation, because as it seems, you only miss 2 pixels of empty space below your sprite.
It has to do with a not much used directional ability of Reel object movies. One such is the Reel logo itself on the homepage - the arrow changes direction to always point "forward". This is achieved by two sprites sheets in one sprite file. One sprite above the other, one for clockwise and one for counter-clockwise motion.
This example of directional sprite is configured as
The line above does the switching from one to the another by shifting the view by a full number of sprite rows (be aware, these
So, be sure to add the not just in-between individual frames, columns and lines, but add the spacing below the sprite too. That should help.