clark Posted September 24, 2012 Author Share Posted September 24, 2012 Hey guys !I finally made a screensize for the netbook computers (640x480) (for my game) everything works correctly but the map is too big so the character when move at the bottom of the screen it still continue to walk but nobody can see it because of the screen being small.is there a code that when the character move at the sides of the screensize it move the camera to show the rest of the map? Link to comment Share on other sites More sharing options...
aaaron Posted September 24, 2012 Share Posted September 24, 2012 Could you post a screenshot, please? Link to comment Share on other sites More sharing options...
clark Posted September 24, 2012 Author Share Posted September 24, 2012 Here the netbook sizeif i go down or right after the screensize the camera don't follow the character![](http://imageshack.us/a/img703/8718/screenszie.png)normal map size :![](http://img853.imageshack.us/img853/3421/map1mv.png)I would like that the camera follow the character even if the map is too big compared to the screenssize Link to comment Share on other sites More sharing options...
Link Posted September 24, 2012 Share Posted September 24, 2012 Oh, I know this fix…ok there's a certain way this needs to be done..ok so let's say the screen size is 800 you'd have to divide that by 32 and -1..it has to come out to be a whole number...so you have to have the correct values in your constants.So for example, screen height = 800 divide by 32 and subtract by one....800/32 = 25 - 1 = 24...(which you'll notice is in the constants) you'll also have to do the same for the pic screen width.Note the height doesn't have to be 800, but it's a good example.Edit: Here's the actual fix, search for> Map constants in mod constantsChange Public Const MAX_MAPX As Byte = "What ever number" into Public Const MAX_MAPX As Byte = 19and then change >> Public Const MAX_MAPY As Byte = "Some number"into> Public Const MAX_MAPY As Byte = 14 Link to comment Share on other sites More sharing options...
clark Posted September 24, 2012 Author Share Posted September 24, 2012 I mean the screen size it's correct for now ^^ but when th character move (when you want to see the rest of the map ) it doesn't show it i mean the character dissapear after reaching the window sizei don,t want to resize the map because there is two version one notebook et the other normal ^^ Link to comment Share on other sites More sharing options...
Link Posted September 24, 2012 Share Posted September 24, 2012 There look above I just posted the actual solution, it should fix the character going off the screen,Edit: I believe I made those values thinking by 600x480 those were the screen sizes, if they aren't first you have to tell me your screen sizes. Link to comment Share on other sites More sharing options...
clark Posted September 24, 2012 Author Share Posted September 24, 2012 screensize is 640 x 480 ^^ Link to comment Share on other sites More sharing options...
Link Posted September 25, 2012 Share Posted September 25, 2012 Ok then, the calculations should be correct. Link to comment Share on other sites More sharing options...
clark Posted September 25, 2012 Author Share Posted September 25, 2012 Ok ^^ and the corrections should be client side right?Edit: i did it in client side and it works ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)!! thank you very much ! Link to comment Share on other sites More sharing options...
Link Posted September 26, 2012 Share Posted September 26, 2012 No problem, amigo. 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