Re: A89: Re: Thanks! (1 question)


[Prev][Next][Index][Thread]

Re: A89: Re: Thanks! (1 question)




>Sorry...slip of the hand, I guess...I know that, I'm not stupid...My sprite
is
>19X19 but In my code I have it going 24 across and 19 down...I didn't mean
to
>write 19X19 I should have wrote 24X19...Oh...one thing I am not sure of
though
>is what you said about the y length... I thought it could be any
length...ie.
>19 down

Sure, but.. if this sprite is going to do anything useful - like in a tile
based game, it is going to be hard to stuff with 19 pixel height. The screen
height is 100, so why make it 19 high? I would either make it 8 pixels high,
16, or (to be evenenly divisble by 100) 10. At least with 10, you can code
it by shifting twice and adding twice, like

Tile ROW 15 * 10 = 15 shifted twice (15*8) + 15 + 15
                               = 120 + 30
                               = 150 pixels down from screen

Easy? Now try that with 19 height :)