View Single Post
Old 7th April 2003, 00:57   #65
mikm
Major Dude
 
mikm's Avatar
 
Join Date: May 2001
Location: somewhere else
Posts: 1,255
hmm...I didn't know there were more than one flavors of Sprite


So you want to move the AVS around and zoom in and out?

That's very easy:

frame:
Rectangular coordiantes on
code:

xm=(insert x movement code here);
ym=(insert x movement code here);
zm=(insert x movement code here);
zoom=1/z;

pixel:
x=(x+xm)*zoom;
y=(y+ym)*zoom;



of course, this will not handle rotation...if you want that, there was a post a while back.

If you want to move a single object around against a static background, then you need to synchronize SSCs.

This can be achieved by using a pseudorandom number generator.

(search the forums for synchronzing superscopes, there will be a much better explanation than I can do here).

powered by C₂H₅OH
mikm is offline   Reply With Quote