momoelz Posted February 20, 2011 Author Share Posted February 20, 2011 How can i Make the Map in the Middle when its not as big as the screenI mean that its not display in the right bottom corner but in the middle? Link to comment Share on other sites More sharing options...
opyeyee Posted February 20, 2011 Share Posted February 20, 2011 I dont quite know what your asking for, but try in map editor>properties>bottom left. Is that what you mean? Link to comment Share on other sites More sharing options...
momoelz Posted February 20, 2011 Author Share Posted February 20, 2011 from :http://img713.imageshack.us/img713/7239/39299621.pngto:http://img7.imageshack.us/img7/5093/hp1i.pngThe white symbolizes the Map area Link to comment Share on other sites More sharing options...
Carim123 Posted February 20, 2011 Share Posted February 20, 2011 You don't.I understand what you're on about, btw. Link to comment Share on other sites More sharing options...
momoelz Posted February 21, 2011 Author Share Posted February 21, 2011 so how todo it? Link to comment Share on other sites More sharing options...
Carim123 Posted February 21, 2011 Share Posted February 21, 2011 @Pikachu!:> You don't.> > I understand what you're on about, btw. Link to comment Share on other sites More sharing options...
momoelz Posted February 21, 2011 Author Share Posted February 21, 2011 I still don'T understand ur answer Link to comment Share on other sites More sharing options...
Carim123 Posted February 21, 2011 Share Posted February 21, 2011 You CAN NOT centralize your map. -_-' Link to comment Share on other sites More sharing options...
Jeff Posted February 21, 2011 Share Posted February 21, 2011 Yes you can. It requires VB6 though. You ARE talking about the Graphical user Interface, right? Link to comment Share on other sites More sharing options...
Carim123 Posted February 21, 2011 Share Posted February 21, 2011 He means, say the map was smaller than 14 by 11, would it be possible to have the result centralized, not in the top-left corner, or wherever it is.I'm pretty sure you can't, without messing up any of the larger maps.Edit: Although, if I am wrong about what you meant, and you're talking about the GUI, simply open the Client VBP, and open the frmMain, or something like that. Forgot which one it was.Move around the things to where you want them, Fully Compile, Save, and Make your Exe, in VB6. Link to comment Share on other sites More sharing options...
zdearborn Posted February 21, 2011 Share Posted February 21, 2011 I think what he wants is for the player to be at the center of the camera no matter where in the map he is located. For instance by default, if you are in the bottom corner, the camera will stop following and just move the player.A (burdensome) workaround could be to extend the boundaries of your map, and put the respective tiles of the next map there, but put Warp attributes down before the camera actually hits the edge, so when the player is walking the camera will continue to scroll, and warp the player before actually hitting the map's edge. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 21, 2011 Share Posted February 21, 2011 I can't believe none of you guys understand what he's talking about.Image 1:Alright, so the **O's are the map**. Currently, if the map is smaller than the picScreen, the map displays at the bottom left. X is nothing.```X X X X XX X X X XX X O O O X X O O O ```Image 2:He wants it so that the map is centralized.```X X X X X X O O O X X O O O X X X X X X ```To answer: you need Visual Basic 6 to do so. Or, you could just make the map the same size as picscreen, add warps to the right spots, and put the blank tiles all around it. Link to comment Share on other sites More sharing options...
Joyce Posted February 21, 2011 Share Posted February 21, 2011 Seems simple enough, calculate the amount of spare tiles, divide by two and start rendering the map there.. :) Have to make sure there are enough tiles to centre it all though.. Doing it per-pixel might be somewhat more complicated.. Link to comment Share on other sites More sharing options...
Carim123 Posted February 21, 2011 Share Posted February 21, 2011 @Soul:> I can't believe none of you guys understand what he's talking about.> > Image 1:> > Alright, so the **O's are the map**. Currently, if the map is smaller than the picScreen, the map displays at the bottom left. X is nothing.> ```> X X X X X> X X X X X> X X O O O > X X O O O > > ```> Image 2:> He wants it so that the map is centralized.> ```> X X X X X > X O O O X > X O O O X > X X X X X > > ```> > To answer: you need Visual Basic 6 to do so. Or, you could just make the map the same size as picscreen, add warps to the right spots, and put the blank tiles all around it.That's exactly what I was on about. >.> Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 21, 2011 Share Posted February 21, 2011 @Pikachu!:> That's exactly what I was on about. >.>I know. I just wasn't sure, so I didn't want to confuse him by mentioning your answer (which he doesn't seem to understand.) Link to comment Share on other sites More sharing options...
momoelz Posted February 22, 2011 Author Share Posted February 22, 2011 soul thats what i meant xD and I know i need vb6 but what i dun know how todo it?I think it would be helpful to know where in code the map will be generated. I think idk if its possible, but when i check once the X coords and tehy are smallery than the X Coords of the Screen which are I think 14 than I Take the Difference btw X coords of Map and Max X Coords and start the map from the half Difference same with y:like:Map:X=5 Y=5Max:X=14 Y=1114-5= 99 Is How many coords on both sides! SO I do /2=> 4,5 => I have to make it to 4.If MapX < MaxX Then (MaxX-MapX)/2 = StartingXEnd… somehow let mape now start from StartingXWhy devided through 2? Because the Difference is on both Sides togher 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