Using DBPro and I don't understand what I'm getting from rotate sprite and move sprite. I tried creating and moving a sprite and got what I expected. But when I tried rotating the sprite before moving it I got results I didn't expect. Except for right around north, the angle of movement and distance moved seems wrong. I expected 90 degree rotation to move west, 180 to move south, and 270 to move east. I expected all moves to be the same short distance. Here is the code and attached .bmp file for the sprite image
set image colorkey 255,255,255
`load image "C:\Documents and Settings\Tommy\My Documents\My Pictures\Test2.bmp",1
load image "C:\Documents and Settings\Tommy\My Documents\My Pictures\Test3.bmp",2
`sprite 1,100,100,1
sprite 2,40,10,2
sleep 500
rotate sprite 2,0 `north as expected
`rotate sprite 2,5 `northwest as expected
`rotate sprite 2,10 `west northwest, expected north northwest
`rotate sprite 2,15 `west southwest, expected north northwest
`rotate sprite 2,55 `west southwest, moves too far, expected northwest
`rotate sprite 2,75 `west southwest, moves too far, expected west northwest
`rotate sprite 2,90 `west as expected but moves to edge of screen
`rotate sprite 2,100 `west to very edge of screen
`rotate sprite 2,180 `disappears (has it moved west off screen?)
`rotate sprite 2,270 `disappears
`rotate sprite 2,300 `disappears
`rotate sprite 2,325 `north northeast, moves too far
`rotate sprite 2,340 `north northeast as expected
`rotate sprite 2,350 `north northeast as expected
move sprite 2,10
wait key
]
The results are noted in the comments. What am I doing wrong?