if x < 0 then you need (512 + x) = xoffset
if y < 0 then you need (256 + y) = yoffset
as offsets are not signed values I believe this gives the corect results for
(-) x and y values.
-dovoto
-----Original Message-----
From: kervinyy@... [mailto:kervinyy@...]
Sent: Tuesday, May 01, 2001 4:32 PM
To: gbadev@yahoogroups.com
Subject: [gbadev] Question about sprite coordinates
Are the object coordinate value in OAM unsigned?
If it is,how do you make the effect that a sprite's
upper/left is out of the screen?If it's signed,8 bit
sprite can only have a max vertical offset of 127...
And,is that value relative to display screen?
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
unsubscribe: gbadev-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/