Rotating Sprites ?

By Retroman

Expert (85)

Аватар пользователя 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

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By anonymous

incognito ergo sum (116)

Аватар пользователя 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.

By Retroman

Expert (85)

Аватар пользователя Retroman

15-07-2004, 00:07

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

By anonymous

incognito ergo sum (116)

Аватар пользователя anonymous

15-07-2004, 00:18

By Retroman

Expert (85)

Аватар пользователя Retroman

15-07-2004, 00:24

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

By anonymous

incognito ergo sum (116)

Аватар пользователя 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

By Retroman

Expert (85)

Аватар пользователя 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 !

By [D-Tail]

Ascended (8258)

Аватар пользователя [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 ;)

By Retroman

Expert (85)

Аватар пользователя Retroman

16-07-2004, 00:05

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

By IC

Hero (557)

Аватар пользователя 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..