Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 To do 25X19 Blocks (800x608 pixels)This is all in the main Client project, "Eclipse.vbp".In ModGameLogic, Search for this:``` NewX = 10 NewY = 7 NewPlayerY = Player(MyIndex).y - NewY NewPlayerX = Player(MyIndex).X - NewX NewX = NewX * PIC_X NewY = NewY * PIC_Y NewXOffset = Player(MyIndex).xOffset NewYOffset = Player(MyIndex).yOffset If Player(MyIndex).y - 7 < 1 Then NewY = Player(MyIndex).y * PIC_Y + Player(MyIndex).yOffset NewYOffset = 0 NewPlayerY = 0 If Player(MyIndex).y = 7 And Player(MyIndex).Dir = DIR_UP Then NewPlayerY = Player(MyIndex).y - 7 NewY = 7 * PIC_Y NewYOffset = Player(MyIndex).yOffset End If ElseIf Player(MyIndex).y + 9 > MAX_MAPY + 1 Then NewY = (Player(MyIndex).y - (MAX_MAPY - 14)) * PIC_Y + Player(MyIndex).yOffset NewYOffset = 0 NewPlayerY = MAX_MAPY - 14 If Player(MyIndex).y = MAX_MAPY - 7 And Player(MyIndex).Dir = DIR_DOWN Then NewPlayerY = Player(MyIndex).y - 7 NewY = 7 * PIC_Y NewYOffset = Player(MyIndex).yOffset End If End If If Player(MyIndex).X - 10 < 1 Then NewX = Player(MyIndex).X * PIC_X + Player(MyIndex).xOffset NewXOffset = 0 NewPlayerX = 0 If Player(MyIndex).X = 10 And Player(MyIndex).Dir = DIR_LEFT Then NewPlayerX = Player(MyIndex).X - 10 NewX = 10 * PIC_X NewXOffset = Player(MyIndex).xOffset End If ElseIf Player(MyIndex).X + 11 > MAX_MAPX + 1 Then NewX = (Player(MyIndex).X - (MAX_MAPX - 19)) * PIC_X + Player(MyIndex).xOffset NewXOffset = 0 NewPlayerX = MAX_MAPX - 19 If Player(MyIndex).X = MAX_MAPX - 9 And Player(MyIndex).Dir = DIR_RIGHT Then NewPlayerX = Player(MyIndex).X - 10 NewX = 10 * PIC_X NewXOffset = Player(MyIndex).xOffset End If End If ScreenX = GetScreenLeft(MyIndex) ScreenY = GetScreenTop(MyIndex) ScreenX2 = GetScreenRight(MyIndex) ScreenY2 = GetScreenBottom(MyIndex) If ScreenX < 0 Then ScreenX = 0 ScreenX2 = 20 ElseIf ScreenX2 > MAX_MAPX Then ScreenX2 = MAX_MAPX ScreenX = MAX_MAPX - 20 End If If ScreenY < 0 Then ScreenY = 0 ScreenY2 = 15 ElseIf ScreenY2 > MAX_MAPY Then ScreenY2 = MAX_MAPY ScreenY = MAX_MAPY - 15 End If ```Replace with this:``` NewX = 12 NewY = 9 NewPlayerY = Player(MyIndex).y - NewY NewPlayerX = Player(MyIndex).x - NewX NewX = NewX * PIC_X NewY = NewY * PIC_Y NewXOffset = Player(MyIndex).xOffset NewYOffset = Player(MyIndex).yOffset If Player(MyIndex).y - 9 < 1 Then NewY = Player(MyIndex).y * PIC_Y + Player(MyIndex).yOffset NewYOffset = 0 NewPlayerY = 0 If Player(MyIndex).y = 9 And Player(MyIndex).Dir = DIR_UP Then NewPlayerY = Player(MyIndex).y - 9 NewY = 9 * PIC_Y NewYOffset = Player(MyIndex).yOffset End If ElseIf Player(MyIndex).y + 11 > MAX_MAPY + 1 Then NewY = (Player(MyIndex).y - (MAX_MAPY - 18)) * PIC_Y + Player(MyIndex).yOffset NewYOffset = 0 NewPlayerY = MAX_MAPY - 18 If Player(MyIndex).y = MAX_MAPY - 9 And Player(MyIndex).Dir = DIR_DOWN Then NewPlayerY = Player(MyIndex).y - 9 NewY = 9 * PIC_Y NewYOffset = Player(MyIndex).yOffset End If End If If Player(MyIndex).x - 12 < 1 Then NewX = Player(MyIndex).x * PIC_X + Player(MyIndex).xOffset NewXOffset = 0 NewPlayerX = 0 If Player(MyIndex).x = 12 And Player(MyIndex).Dir = DIR_LEFT Then NewPlayerX = Player(MyIndex).x - 12 NewX = 12 * PIC_X NewXOffset = Player(MyIndex).xOffset End If ElseIf Player(MyIndex).x + 14 > MAX_MAPX + 1 Then NewX = (Player(MyIndex).x - (MAX_MAPX - 24)) * PIC_X + Player(MyIndex).xOffset NewXOffset = 0 NewPlayerX = MAX_MAPX - 24 If Player(MyIndex).x = MAX_MAPX - 12 And Player(MyIndex).Dir = DIR_RIGHT Then NewPlayerX = Player(MyIndex).x - 12 NewX = 12 * PIC_X NewXOffset = Player(MyIndex).xOffset End If End If ScreenX = GetScreenLeft(MyIndex) ScreenY = GetScreenTop(MyIndex) ScreenX2 = GetScreenRight(MyIndex) ScreenY2 = GetScreenBottom(MyIndex) If ScreenX < 0 Then ScreenX = 0 ScreenX2 = 25 ElseIf ScreenX2 > MAX_MAPX Then ScreenX2 = MAX_MAPX ScreenX = MAX_MAPX - 25 End If If ScreenY < 0 Then ScreenY = 0 ScreenY2 = 19 ElseIf ScreenY2 > MAX_MAPY Then ScreenY2 = MAX_MAPY ScreenY = MAX_MAPY - 19 End If ```In ModDirectX, Search for this```Public Function GetScreenLeft(ByVal Index As Long) As Long GetScreenLeft = GetPlayerX(Index) - 11End FunctionPublic Function GetScreenTop(ByVal Index As Long) As Long GetScreenTop = GetPlayerY(Index) - 8End FunctionPublic Function GetScreenRight(ByVal Index As Long) As Long GetScreenRight = GetPlayerX(Index) + 10End FunctionPublic Function GetScreenBottom(ByVal Index As Long) As Long GetScreenBottom = GetPlayerY(Index) + 8End Function ```Replace with this```Public Function GetScreenLeft(ByVal Index As Long) As Long GetScreenLeft = GetPlayerX(Index) - 12End FunctionPublic Function GetScreenTop(ByVal Index As Long) As Long GetScreenTop = GetPlayerY(Index) - 9End FunctionPublic Function GetScreenRight(ByVal Index As Long) As Long GetScreenRight = GetPlayerX(Index) + 12End FunctionPublic Function GetScreenBottom(ByVal Index As Long) As Long GetScreenBottom = GetPlayerY(Index) + 9End Function```Credits to Fryeja and me.Hope you like it!You can modify the -# and +# to your liking.SCREENSHOT: ![](http://i592.photobucket.com/albums/tt9/Steve_Alpha/Screenshot_1.jpg?t=1238853211)-Alpha Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2009 Share Posted March 30, 2009 NICEEDIT just drag the picscreen as big as you want Link to comment Share on other sites More sharing options...
Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 Nope, that doesn't work.Only this does.-Alpha Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2009 Share Posted March 30, 2009 WANNA BET Link to comment Share on other sites More sharing options...
Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 $500 USD. Lol, I'm right.. You just try..-Alpha Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2009 Share Posted March 30, 2009 wow i won loads of money it worked for me Link to comment Share on other sites More sharing options...
Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 Show a screenshot.-Alpha Link to comment Share on other sites More sharing options...
zade_o Posted March 30, 2009 Share Posted March 30, 2009 He's lying. It doesn't work. That is the only way to do it. Link to comment Share on other sites More sharing options...
Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 Okay, thanks Ghost for clearing it up.-Alpha Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2009 Share Posted March 30, 2009 *gets mad* me made it a nice square and it worked Link to comment Share on other sites More sharing options...
unnown Posted March 30, 2009 Share Posted March 30, 2009 yeah but he also made it have more tiles…as he posted...you just strecthed it,,, Link to comment Share on other sites More sharing options...
zade_o Posted March 30, 2009 Share Posted March 30, 2009 Tipsta…. let me put it this way....The only way to make more tiles show up on the screen.... is with what he has here.You cant simply stretch PicScreen. If you SHRINK picscreen then yes you can resize it that way, but I have a feeling that would cause some problems.It's impossible to show more tiles without using this method. Link to comment Share on other sites More sharing options...
Alpha Posted March 30, 2009 Author Share Posted March 30, 2009 Okay, thanks again for clearing this up.-Alpha Link to comment Share on other sites More sharing options...
damian666 Posted April 2, 2009 Share Posted April 2, 2009 so, is it just me, or does this produce a weird thing on the sides?wheneven the map starts scrolling, it looks like the edges stay still, andthe rest of the tiles slide under it…very weird :SDamian666 Link to comment Share on other sites More sharing options...
Alpha Posted April 2, 2009 Author Share Posted April 2, 2009 You probably just resized it, not adding the code.-Alpha Link to comment Share on other sites More sharing options...
riseofwar Posted April 2, 2009 Share Posted April 2, 2009 So this makes the actual map bigger? Or just makes every map a scrolling map?Can someone please post a screenshot of what it looks like when edited? Link to comment Share on other sites More sharing options...
damian666 Posted April 2, 2009 Share Posted April 2, 2009 @»Alpha«:> You probably just resized it, not adding the code.> > -Alphano offence dude, but i am no noob…of course i added the code, it works great, just i wonder if that thing is a result of it.don't you see it?watch the edges of the screen when ya walk a map, look what it does...Damian666 Link to comment Share on other sites More sharing options...
Alpha Posted April 2, 2009 Author Share Posted April 2, 2009 You probably resized the picscreen too big.-Alpha Link to comment Share on other sites More sharing options...
damian666 Posted April 3, 2009 Share Posted April 3, 2009 hmm… well, i could try to get it smaller...good point ^^ill try that.Damian666 Link to comment Share on other sites More sharing options...
Alpha Posted April 3, 2009 Author Share Posted April 3, 2009 Move it around until you see the display near your mouse go to 800 and 608.-Alpha Link to comment Share on other sites More sharing options...
damian666 Posted April 3, 2009 Share Posted April 3, 2009 hmm… tried it, doesnt matter anything sadly...oh well, its not that big of a deal , was just wondering what caused it. meh :dDamian666 Link to comment Share on other sites More sharing options...
Alpha Posted April 3, 2009 Author Share Posted April 3, 2009 Make it 25x19 blocks?It works for me.-Alpha Link to comment Share on other sites More sharing options...
damian666 Posted April 3, 2009 Share Posted April 3, 2009 well, it should work right of the bat right?i dont see why it works for you, and not for me, its frikking copy paste for godsake :PDamian666 Link to comment Share on other sites More sharing options...
Alpha Posted April 3, 2009 Author Share Posted April 3, 2009 Yeah I know, it should work though!:huh:Tell me if you think of anything.-Alpha Link to comment Share on other sites More sharing options...
damian666 Posted April 3, 2009 Share Posted April 3, 2009 damn, i started over, still the same…that's weird ^^oh well, it6s just at the edges, main game screen is not effected, so i will deal with it for now.still nice code :DDamian666 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