Chakkra Posted July 1, 2009 Share Posted July 1, 2009 I have a question that might be a popular one:**If I have 96x96 sprites (reiners for example) will I be able to put them in a sprite sheet and have it not cut off? If so, How?**I suck at wording questions, but i think you get my drift. Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 Yeah 96 by 96 wouldnt work at all. It has to be a power of 2\.Like 64 or 128And in 3.0, the sprite sheets a seperate. So you just put your sheet in a folder called sprites. ;) Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 Then that leads me to my next question:**Will you still be able to use 32x64? or does it have to be 32x32, 64x64, etc?** Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 Yeah. You can use 32X64, it doesnt have to be square. :azn:PS: ill try to add all of the Q&A when i get some time.. Im really busy lately ;) Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 also,**I want to clarify the "Nx8" thing. So is it possible to have 8-frame walking (8x8)? (The frames have to be powers of 2, right?)**–-and---**Can you have 8-frame walking but only 4-frame attacking?**Sorry for all the really nooby questions xD I bet they've been answered before, but I jjust want to clarify 100% Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 The frames dont have to be powers of two. Just the sheet. So yes you can have a 8X8 frame.And for the attacking just leave the extra spaces blank;) Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 thanks man ^.^Lol, I remember back when I was helping you with eclipse. Now the tables have turned :P Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 Lol. Npyeah, I wanted to give back to the community that helped me so much :azn: Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 oh, and i vote for sticky ;) Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted July 1, 2009 Share Posted July 1, 2009 @Irhymer:> The frames dont have to be powers of two. Just the sheet. So yes you can have a 8X8 frame.> > And for the attacking just leave the extra spaces blank> ;)lol, the sprites are power of 2 if the sheet is power of 2minimum sprite sheet size is 8 pixels down (1/8 = 0, 2/8 = 0, 4/8 = 0)and 8/8 = 1you can use math to prove that the sprite dimensions are always power of 2let the function, xrt(n) return the least root of that functionfirst find the lowest value, p = 8xrt(p) = 2xrt(8) = 23rt(8) = 2let m be a multiple of p, assume that xrt(m) = 2.now find the next value, 2m since the next valid size is 2x the lastxrt(2m)xrt(2) * xrt(m) = 2since the only value that x can be in xrt(n) = 1 where x is an integer > 0 while returning an integer,xrt(m) = 2since xrt(m) = 2, all valid values for m are power of 2.And since all values of m are factors of p, the sprite size will always be a power of 2 while the sprite sheet is a power of 2. Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 @Zetta:> lol, the sprites are power of 2 if the sheet is power of 2> minimum sprite sheet size is 8 pixels down (1/8 = 0, 2/8 = 0, 4/8 = 0)> and 8/8 = 1> > you can use math to prove that the sprite dimensions are always power of 2> > let the function, xrt(n) return the least root of that function> > first find the lowest value, p = 8> xrt(p) = 2> xrt(8) = 2> 3rt(8) = 2> > let m be a multiple of p, assume that xrt(m) = 2.> now find the next value, 2m since the next valid size is 2x the last> > xrt(2m)> xrt(2) * xrt(m) = 2> > since the only value that x can be in xrt(n) = 1 where x is an integer > 0 while returning an integer,> > xrt(m) = 2> > since xrt(m) = 2, all valid values for m are power of 2.> And since all values of m are factors of p, the sprite size will always be a power of 2 while the sprite sheet is a power of 2.Now in human please? ^.^ Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 1, 2009 Share Posted July 1, 2009 @[SB:> Chakkra link=topic=45951.msg485076#msg485076 date=1246486960]> Now in human please? ^.^Seems pretty straight-forward in my opinion.n and x is the target number, and the number-rooted, respectively.Simple algebra. Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 Hm… So about the spell stuff I asked earlier? :P Link to comment Share on other sites More sharing options...
Chakkra Posted July 1, 2009 Share Posted July 1, 2009 @Admiral:> Seems pretty straight-forward in my opinion.> n and x is the target number, and the number-rooted, respectively.> Simple algebra.well i suppose you should send a letter to my highschool, cuz i'm a sophomore almost a junior and i havent learned any of that. especially the wording… Link to comment Share on other sites More sharing options...
Irhymer Posted July 1, 2009 Author Share Posted July 1, 2009 Hey im a sophomore! lolLol, i kind of understand it but it sounds more like programming then algebra except for the 8X8 stuff :P Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 2, 2009 Share Posted July 2, 2009 Okay….rt(p) = root of p.2rt(p) = square root of p.3rt(p) = cubed root of p.If something (let's call it "n") is the power of 2, that means that you can achieve "n" by multiplying two raised to a certain power.HM used 83rt(8) = the cube root of 82*2*2 = 82^3 = 8first find the lowest value, p = 8xrt(p) = 2xrt(8) = 23rt(8) = 2In the above, you're solving for the letter "x", and you already know what "p" is, it's 8.When he says:let m be a multiple of p, assume that xrt(m) = 2.He means, that any number's root of m, = 2 Link to comment Share on other sites More sharing options...
Irhymer Posted July 2, 2009 Author Share Posted July 2, 2009 ok cool. :azn: Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted July 2, 2009 Share Posted July 2, 2009 @Irhymer:> Hey im a sophomore! lol> > Lol, i kind of understand it but it sounds more like programming then algebra except for the 8X8 stuff :Pits an algebraic proof Link to comment Share on other sites More sharing options...
Irhymer Posted July 2, 2009 Author Share Posted July 2, 2009 k, Why im up this late, ill never know.. What ill do for eclipse. :P(12:51am) Link to comment Share on other sites More sharing options...
Antidote Posted August 6, 2009 Share Posted August 6, 2009 A question about the custom character creation screen, how will that be formatted? Right now, it's set up that the different styles are in the long row, but this new format is set up so that it's Nx8.Now, if there are separate files for sprites and items, how will this work? Each individual sprite and item is in a different file, but the custom sprite creation thing has all the items in one file. Will the custom character creation thing read from different files, or what?I hope I'm being clear….if not, let me know and I'll see if I can clarify. Link to comment Share on other sites More sharing options...
Solstice Posted August 6, 2009 Share Posted August 6, 2009 I'm not good at maths, what does power mean? lmao.So clueless over here. O.o if someone could fill me in, I'd appreciate it. Link to comment Share on other sites More sharing options...
Antidote Posted August 6, 2009 Share Posted August 6, 2009 It's math. 2 (to the power of) x = 2 times itself "x" times. Link to comment Share on other sites More sharing options...
xelander Posted August 15, 2009 Share Posted August 15, 2009 So, simply, the wide-ness has to be half of the height?So, 10x20 would work? Link to comment Share on other sites More sharing options...
Antidote Posted August 15, 2009 Share Posted August 15, 2009 No. Please read my previous post. You can't actually use either of those numbers, because they don't go into 2. 2 times itself 3 times is 8, and 2 times itself 4 times is 16, then 32, 64, 128, etc. You can only use those numbers.But don't worry, just go for a relatively large number, and then don't worry about the extra "space" that's there, as it won't be used anyways. Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted August 15, 2009 Share Posted August 15, 2009 @Antidote:> No. Please read my previous post. You can't actually use either of those numbers, because they don't go into 2. 2 times itself 3 times is 8, and 2 times itself 4 times is 16, then 32, 64, 128, etc. You can only use those numbers.> > But don't worry, just go for a relatively large number, and then don't worry about the extra "space" that's there, as it won't be used anyways.No, thats incorrect. The dimensions you can use have to be a power of 2 such as:01 = 2^002 = 2^104 = 2^208 = 2^316 = 2^432 = 2^564 = 2^6and so on. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now