On Sat, 22 Apr 2000, Floris 'Tamama' van Gog wrote:

> i'm once again trying to do something with my MSX, and right now i/m
> messing with sprites and vpoke/vpeek's (all pretty basic stuff, but you
> have to start somewhere). Now i'm trying to make a 2 color sprite by
> putting 2 sprites over eachother. This kinda works, but when i move it,
> it's ugly because you can see that one moves earlier than the other etc.
> So i was wondering, is there a way to see when to move the sprites
> (maybe by use of vrt retr.)? I assume there is because most games i
> played don't have this icky movement :-)

You can read bit6 of VDP status register 2 to find vertical retrace:
VDP(-2) and &H40

I forgot whether zero or non-zero means the vertical retrace is active.

But I'm not sure BASIC is fast enough to react to vertical retrace...

Bye,
                Maarten

****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
 The MSX faq: http://www.faq.msxnet.org/
 The MSX newsgroup: comp.sys.msx
 The MSX IRC channel: #MSX on Undernet
****

Reply via email to