123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|581|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Concept/Design -> Pre-rotating Sprites

Sun, 23 Jan 2022, 10:03
spinal
Does anyone have a simple tool for taking a small image, maybe icon sized and rotating it through 360 degrees around the Y axis? For creating little spinning spritesheets for collectable items, you know, coil=ns etc. ??

-=-=-
Check out my excellent homepage!
Sun, 23 Jan 2022, 10:03
Jayenkai
You could do that in bmax, easily enough, using its rotation stuff, but I think array based "might" work out better.. maybe..? What specs do you have? Eg sprite size and output frames, etc.

-=-=-
''Load, Next List!''
Sun, 23 Jan 2022, 13:50
Jayenkai
Coded for BlitzMax



... Something like that, I think..
Should work with anything labelled rot.png.
Set the Mask Colour to the transparent colour you're using, and Background Colour to an approximately suitable background when it's doing the filtered/anti-aliased version.
Set the frames to however many frames you'll be wanting, and then.. hopefully, unless it crashes, you should end up with two versions, a filtered and an unfiltered.
Hope that does the job..

-=-=-
''Load, Next List!''
Mon, 24 Jan 2022, 13:17
spinal
hmmm, not working in bmax or b3d what version is it?

-=-=-
Check out my excellent homepage!
Mon, 24 Jan 2022, 13:33
Jayenkai


Hmm.. It's not doing anything beyond fairly simple bmax functionality.
I'd've done it in JSE, but that's not really adept at loading and saving images.

-=-=-
''Load, Next List!''
Mon, 24 Jan 2022, 13:48
spinal


I get

Compile Error
Identifier 'OutputFrames' not found.

-=-=-
Check out my excellent homepage!
Mon, 24 Jan 2022, 13:56
therevillsgames
Spinal, since you are using NG, the code will need to be updated to at least Strict mode I believe.
Mon, 24 Jan 2022, 13:57
Jayenkai
Oh, right. You'll have it set to strict mode, somewhere.
Go through and add all my variables to the top. I'm too lazy for that shit, that's why I use Blitz

-=-=-
''Load, Next List!''
Mon, 24 Jan 2022, 15:27
Jayenkai
Aaah, enforced strict mode.
So useful, and absolutely important in a BASIC language.

"Ok, little Fred. It's time to take off your stabilisers.. are you ready to pedal freely for the first time?"
"Sure thing, Dad!"
"Off you go!"
"Weeeee!!!!... .... Dad, I can't turn!!"
"That's ok. I welded your handlebars."
"But dad!!"
"THAT IS THE CORRECT DIRECTION. DO NOT DEVIATE..."

-=-=-
''Load, Next List!''
Tue, 25 Jan 2022, 01:42
spinal
hah, yeah, just going through now declaring all the variables..... not interesting

Is max 1.43 also freeware and also downloadable from somewhere? I had a quick google and could only find later versions

-=-=-
Check out my excellent homepage!
Tue, 25 Jan 2022, 01:52
therevillsgames
Jay is using BMX 1.50, it's the IDE that's 1.43
Tue, 25 Jan 2022, 03:24
Jayenkai
I believe it's probably This version! Though whether that's been updated in the interim, not sure..

-=-=-
''Load, Next List!''
Tue, 25 Jan 2022, 03:24
spinal
Oh, had my axis mixed up, I meant the other way Like a mario coin

-=-=-
Check out my excellent homepage!
Tue, 25 Jan 2022, 03:42
Jayenkai
Ah, then instead of the SetRotation line, use SetScale and a Sin wave

SetScale Sin(Float(m)*framerot),1

(Or is it SetSize? Can never remember.. years of my own command set!!)

-=-=-
''Load, Next List!''
Tue, 25 Jan 2022, 07:21
spinal
Perfect!