From: | David McMinn |
Date: | 19 Apr 2001 at 10:22:05 |
Subject: | Re: moving shape |
Hi amorel
> Not exactly, ine the case I try to move it <>90 degrees, for example 135, the
> shape only gets blitted once every 2 loops, when y gets upped with one(then x
> has been upped twice with 1).
In that case it's more like 116 degrees, not 135 ;)
</pedantic>
> Well afaics the shape DOES move at the same speed, it just has an annoying
> skipping/flicker.
Yeah....but if you move it a bigger distance, and maybe stand a few metres away
from the screen the visual effect should be that it moves at the same speed :)
Sorry, it was the best I can do, and if you are operating at lowres then it'll
be the best anyone can do. You either have the diagonal directions moving
faster, or you need skipping/flickering shapes to either slow the diagonals
down or speed up the horizontal/vertical.
If you could use a high resolution, then you could achieve more accurate
results with the skipping/flickering.
> I`ll try that little example, but I wonder how this will move the shape in
> <>90 degrees.
It adds 1 to the horizontal and vertical each frame (unless it is one of the
frames where it skips this). So you'll end up with this position (frame numbers
written beside the position, position 0,0 is top-left as it is with the
display):
|
___|____
|\1
| \2 & 3
| \4
| \5 & 6
| \7
| \8
| \9 & 10
| \11
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie