Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Eo] Change Screen Size : 800x600


trautmen
 Share

Recommended Posts

Hi, This is a tutorial to change screen size :)
follow instruction step by step :)

Now how to do..

Go to frmMainGame and search picScreen_MouseDown.. and put this code:
```
picScreen.width = 800 ' Width in tiles * 32
picScreen.height = 608 ' Height in tiles * 32
```
and then go to Form_Load in frmMainGame..search this code:
```
Me.width = 10545
```and remove it.

Now one click on the picscreen and in properties change Width=800 Height=608

oh :P now go to modConstants and search ' Map constants and search this code:
```
Public Const MAX_MAPX As Byte =
Public Const MAX_MAPY As Byte =
```
and copy it to:
```
Public Const MAX_MAPX As Byte = 24
Public Const MAX_MAPY As Byte = 18
```
:D and woala :)
Link to comment
Share on other sites

@trautmen:

> Go to frmMainGame and search picScreen_MouseDown.. and put this code:
> ```
> picScreen.width = 800 ' Width in tiles * 32
> picScreen.height = 608 ' Height in tiles * 32
> ```

Place it under Form_Load,  otherwise it will only change size when you click the screen.
Tested it, works fine.
Link to comment
Share on other sites

how about instead of only showing how to do for 800x600 you could show people how they can have any size they want?  instead of
```
picScreen.width = 800 ' Width in tiles * 32
picScreen.height = 608 ' Height in tiles * 32
```do something like
```
picScreen.width = (any number that is divisible by 32\. lets call that number X)
picScreen.height = (any number that is divisible by 32\. Lets call this number Y)
```and instead of
```
Public Const MAX_MAPX As Byte = 24
Public Const MAX_MAPY As Byte = 18
```
put
```
Public Const MAX_MAPX As Byte = (X / 32 - 1)
Public Const MAX_MAPY As Byte = (Y / 32 - 1)
```
and then use the 800x600 as an example.
Link to comment
Share on other sites

@DiezeltJ:

> Hi,
>
> I Have a problem…
>
> I Can´t get is Larger then this and I can walk out of the screen:

Seems you forgot this step..

@trautmen:

> and then go to Form_Load in frmMainGame..search this code:
> ```
> Me.width = 10545
> ```and remove it.
Link to comment
Share on other sites

@Ertzel:

> @DiezeltJ:
>
> > Hi,
> >
> > I Have a problem…
> >
> > I Can´t get is Larger then this and I can walk out of the screen:
>
> Seems you forgot this step..
>
> @trautmen:
>
> > and then go to Form_Load in frmMainGame..search this code:
> > ```
> > Me.width = 10545
> > ```and remove it.

Wait I have the same problem but I already did that part :O
Link to comment
Share on other sites

  • 3 weeks later...
Hmmm, this edit does look very short and sweet. However I'm stilling having a little trouble with it. I'm thinking I have all of the code in properly except for the part below and a little confused how to get the properties changed.

This is what my code looks like

> Private Sub picScreen_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
> picScreen.width = 800 ' Width in tiles * 32
> picScreen.height = 608 ' Height in tiles * 32

Let me know if that's right, I think that may be where I messed up the code.

And as for the "Now one click on the picscreen and in properties change Width=800 Height=608". I believe I did this correct, though that may be the problem. Currently the code isn't working and I've spent a decent amount of time playing with it. I know the code works, the error is on my part.

I'd really appreciate a little additional guidance on what I may have done wrong. Thanks!
Link to comment
Share on other sites

@Icie:

> And as for the "Now one click on the picscreen and in properties change Width=800 Height=608". I believe I did this correct, though that may be the problem. Currently the code isn't working and I've spent a decent amount of time playing with it. I know the code works, the error is on my part.

The problem is, you don't double click on picscreen and write the code in…

Click on picscreen ONCE, then look at the properties window to the right in vb6, find Height and Width in there and change those to 800 and 608.
Link to comment
Share on other sites

@Ertzel:

> @Icie:
>
> > And as for the "Now one click on the picscreen and in properties change Width=800 Height=608". I believe I did this correct, though that may be the problem. Currently the code isn't working and I've spent a decent amount of time playing with it. I know the code works, the error is on my part.
>
> The problem is, you don't double click on picscreen and write the code in…
>
> Click on picscreen ONCE, then look at the properties window to the right in vb6, find Height and Width in there and change those to 800 and 608.

Thanks for the fast reply. I was able to get to the "picscren properties" window and find "picscreen Picturebox" which is where I changed the height and width to the above. I was assuming this was what was referred to, though it is not directly stated in there. If that is where those changes need to be made, apparently I've done those right. If not, this may be the problem.
Link to comment
Share on other sites

Its this.

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/f1a6c9247332fff9ce4d1350537e0a67.png)

Then at the bottom of the properties window is Width.

**[Edit]**

Oh wait lol, didn't read the tutorial, this isn't what I was thinking.

You have to put your code in Form_Load in frmMainGame, not picScreen_MouseDown

and remove Me.width = 10545

Then it should work.

Although u could just do what I said and change the screen size ahead of time and avoid the whole need for the
picScreen.width = 800 ' Width in tiles * 32
picScreen.height = 608 ' Height in tiles * 32
stuff
Link to comment
Share on other sites

Well I've done both setting the width and height in the properties (as you posted). I also posted it in the Sub Form_Load in frmMainGame (below), neither have worked for me at this point. I've changed the max of x/y both to what was listed in the original tutorial. Still something I'm missing…  :sad:

> Private Sub Form_Load()
>     picScreen.width = 800
>     picScreen.height = 608
>     picAdmin.Left = 10
>     picCurrency.Left = txtMyChat.Left
>     picCurrency.Top = txtMyChat.Top
> End Sub
Link to comment
Share on other sites

I used this to change the screen size to 517x323, with the code:

```
    picScreen.width = 517 ' Width in tiles * 32
    picScreen.height = 323 ' Height in tiles * 32
```
But for some reason my map editor is making my tile placer box (the dotted line box) is not under the mouse when i place tiles. It's more like up and to the right. And, I can't place tiles two spaces up from the bottom.

What did I do wrong?
Link to comment
Share on other sites

@Robin:

> Did you not bother to follow the tutorial at all?

Well, once I realized that to have maps indivisible by 32 was not gonna work lol, then I solved the problem with it never lining up. I only have one thing to say at this point:

![](http://images.picturesdepot.com/photo/h/homer_simpson_doh-11214.jpg)
Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...
  • 10 months later...
yea ok i instaled it all correctly but yet when i fill or design map it only fills old gap pluss..
i cant walk out onto new bit still the same of being in the same area…..

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/22cd3ee3b995e38e1c027f89feec6aca.png)

I know the game looks abit every where but its because its under making :)
Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...