Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite rotation...
#1
I want to use the sprite rotation routines from cosmox or rellib, but at every 90 degree increment, it jerks the sprite a bit. Is it just my faulty programming, or is it the routine? Is there any routines out there that gives you a smooth 360 degree rotation? Thanks
Reply
#2
well, since rel's visiting his old man i should probably say something like "could i see the program?" are you including both 0 and 360 as degrees in your loop? at what degree does it jerk?
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
Quote:I want to use the sprite rotation routines from cosmox or rellib, but at every 90 degree increment, it jerks the sprite a bit. Is it just my faulty programming, or is it the routine? Is there any routines out there that gives you a smooth 360 degree rotation? Thanks

What increments are you using? Surely you're not rotating each degree? His routines would be working in radians anyways... I'd go in 5 or 8 degree notches, or just make 16/32 directional sprites manually.
Reply
#4
i rel's rotation routines do go by degree. most libs i've seen have integer increments, but it's usually something like up to 255 or something. i'll have to check the library itself.

but the program itself would be helpful so we could see whether or not it's the program or the routine.

edit: yeah, it's 0-359.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#5
Well, here's an example using cosmox. It has the same problem: (right-click, save-as...)

www.geocities.com/juice801980/temp.zip

It jerks at every 90 degrees. :???:
Reply
#6
Hmmmm... Didn't notice it. Lachie use it on REO and it didn't have any probs.

There's an example file there. Are you by any chance using a non released ver? You could look at the source to see if the SHR is:

SHR 8
instead of Shr 7

as shifting 8 would mess the sign bit.

if you are using the unrealeased crap ver then you need to get the newest ver which I could only provide via email as my site is probaby dead already.

Be back on Thursday.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)