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

[EO]i resized my picScreen an got it all working but….


GammaÃâžÂ
 Share

Recommended Posts

Hello,

I resized my picScreen everything works fine but i have some little problems,

>! ![](http://img716.imageshack.us/img716/5765/picscreenhelp.png)
1.: where 1 stands there is my mouse, but as you can see the tiles and the map grid are getting placed on a different place, how to fix that?
2.: my name is getting ducked up it now has half-pixels somehow :S
3.: same here, my sprite is getting ducked up
4(Not in pic).: When i enter frmmaingame while playing my win7 is doing strange the button to start is getting zoomed in and normal etc… and yea it just ducks up my win7 :P

Please help me D:

Gammaâ„¢
Link to comment
Share on other sites

@Gammaâ„¢:

> its normal that its zoomed in thats my game's style :S

Then do it properly. You can't just break something and say 'Ooh, that looks nice'. You need to look at the underlying systems and how they're effected.
Link to comment
Share on other sites

@Robin:

> @Gammaâ„¢:
>
> > its normal that its zoomed in thats my game's style :S
>
> Then do it properly. You can't just break something and say 'Ooh, that looks nice'. You need to look at the underlying systems and how they're effected.

Could you give a hint; what underlying systems and what to change cuz i cant fin them :S

Gammaâ„¢
Link to comment
Share on other sites

I REALLY suggest againsed doing it like that because all it does is nearest neighbor resize everything after you've drawn it all. Which means, either deal with all your issues or have the game look normal and not resized.
Link to comment
Share on other sites

Heh. I'm running on assumptions here. Sorry.

@Gammaâ„¢:

> I did… it all works fine but, only those problems the tiles are normal...
>
> Gammaâ„¢

Because you said this, I'm assuming you want all the tiles to look "stretched". Right?

Well, having them stretched the way your doing it is very bad.
Link to comment
Share on other sites

Alright. Then setting MAX_MAPX and MAX_MAPY to the following should work.
(Use a calculator to figure out the values, don't copy paste this.)

```
MAX_MAPX = (picScreen.Width / 32) - 1
MAX_MAPY = (picScreen.Height / 32) - 1

```
Note: Yes, this means that the size of picScreen has to be a multiple of 32.
Link to comment
Share on other sites

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...