Tameric Posted February 7, 2011 Author Share Posted February 7, 2011 _Greetings,_I am in the midst of resizing my _picScreen_, and I know these sorts of questions are getting very old, and I know there's guides and the likes, but though I've read and searched around a lot, I am concerned as to what this value really is? I have yet to come across any guides that really explain what it is.I plan on having multiple settings for players, with the Width and Height resolutions, and this "**As Byte = #**" criteria seems to always be different in every tutorial that I see.So without further adieu, my real question is: How is this value calculated according to the picScreen.width and picScreen.height values? And is there other values I should be aware of that may alter the byte's set value?Thanks in advance.**:Edit:**To furtherly dock an example as to what I am referring to by "As Byte = #":```Public Const MAX_MAPX As Byte = #Public Const MAX_MAPY As Byte = #```Is what I speak of.Some people also say something as such:```Public Const MAX_MAPX As Byte = (X / 32 - 1)Public Const MAX_MAPY As Byte = (Y / 32 - 1)```I sort of understand this, but as I stated, the Byte value keeps changing in that first code "#" reference, through the differ of several tutorials; so if I wanted some specific resolution, I'm not sure how it would work out the correct way with this Byte number. Other than that, I think I've got it all figured out well enough.Your answers are very much appreciated.**Regards,_- Tameric._** Link to comment Share on other sites More sharing options...
Fbu Posted February 7, 2011 Share Posted February 7, 2011 Lets say you want your size at 800x608\. You would set that in the properties.Then do the math for that part:```Public Const MAX_MAPX As Byte = (800 / 32 - 1)Public Const MAX_MAPY As Byte = (608 / 32 - 1)``````Public Const MAX_MAPX As Byte = (25 - 1)Public Const MAX_MAPY As Byte = (19 - 1)```This is what you put in:```Public Const MAX_MAPX As Byte = 24Public Const MAX_MAPY As Byte = 18```It goes in both server and client Link to comment Share on other sites More sharing options...
Tameric Posted February 7, 2011 Author Share Posted February 7, 2011 Ah, so basically it's like, the resolution number divided by 32, and then minus 1 from the division number? Link to comment Share on other sites More sharing options...
shado360 Posted February 7, 2011 Share Posted February 7, 2011 Yep! Good luck with your project.Regards,Païn Link to comment Share on other sites More sharing options...
Tameric Posted February 7, 2011 Author Share Posted February 7, 2011 Alright. ^^ Thanks for both of your help. I should be able to work this out now.Cheers. ~ Link to comment Share on other sites More sharing options...
Fbu Posted February 7, 2011 Share Posted February 7, 2011 No problem (: 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