Rotating Sprites ?

Por Retroman

Expert (85)

imagem de Retroman

14-07-2004, 23:36

Is there a way to rotate the sprites in BASIC ? I want to make a little animation but preferrably I don´t want to draw a sprite for each angle Sad

Entrar ou registrar-se para comentar

Por anonymous

incognito ergo sum (118)

imagem de anonymous

14-07-2004, 23:52

You actually mean ROTATE? Not FLIP or MIRROR?
For any of the above functions you will need to write your own code, or use seperately drawn or generated sprites.

With rotation it's hard to achieve good results, as a rotated 16x16 sprite doesn't fit in 16x16 anymore for most angles. The lower the resolution, to harder it is to get good results. So you're better off drawing the sprites from different angles yourself, or use a program to generate them and then adjust them by hand.

Por Retroman

Expert (85)

imagem de Retroman

15-07-2004, 00:07

No, not flip or mirror, rotating in different angles ! So it IS possible ? How Wink ?

Por anonymous

incognito ergo sum (118)

imagem de anonymous

15-07-2004, 00:18

Por Retroman

Expert (85)

imagem de Retroman

15-07-2004, 00:24

Hmmm, I did a search and it revealed nothing, oh well ..... thx Big smile

Por anonymous

incognito ergo sum (118)

imagem de anonymous

15-07-2004, 00:25

5th entry when searching for 'rotate' Smile
Ofcourse I knew what to look for, having answered that thread myself Tongue

Por Retroman

Expert (85)

imagem de Retroman

15-07-2004, 00:27

I allways tried things like "rotate sprite" and "rotate sprites" ! Never tried ROTATE as a single word Sad

Anyway, that sample code is a great help to me, thx again !

Por [D-Tail]

Ascended (8239)

imagem de [D-Tail]

15-07-2004, 18:45

Well, I've myself developed an article on rotation... Check :) this link :)...

Though the results aren't as satisfactory as they should be... IIRC Sonic_aka_T gave me some advice about that, but I'm not sure about that. Anyway, I didn't do anything with it ever since. Just check it and see if it's of any help ;)

Por Retroman

Expert (85)

imagem de Retroman

16-07-2004, 00:05

I´ll have a look at it Smile Thx Big smile

Por IC

Hero (557)

imagem de IC

16-07-2004, 00:48

I tried a fullscreen rotate function full screen in kun basic.. I know it can be done.. But realtime is really slow..