#๐Ÿ”’ screen not fitting please help

42 messages ยท Page 1 of 1 (latest)

tall heartBOT
#

@jolly zealot

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

jolly zealot
#

this is the code, the full map screen is not fitting my laptop screen , it is going out of my screen. please help me

jolly zealot
#

someone help

barren heron
#

Check the resolution and scale of your screen, windows has these things in Display Settings

jolly zealot
#

its 1920*1080

#

its not making any diffrence

#

i can't see the full thing

#

please me brother

jolly zealot
#

some one help me please

stray crag
jolly zealot
stray crag
jolly zealot
#

my laptop resolution is 1920*1080 and the resolution of the pic is also same

jolly zealot
stray crag
jolly zealot
#

now the image is

jolly zealot
stray crag
#

yes

#

but you should just use pygame.transform.scale on your map image to make it fit to whatever resolution is the window's

jolly zealot
#

where should i put that code

stray crag
#

game_map = pygame.image.load('map2.png').convert() -> game_map = pygame.transform.scale(pygame.image.load('map2.png').convert(), [WIDTH, HEIGHT])

#

something like that

jolly zealot
stray crag
#

uuuuh maybe??? idk what you want

jolly zealot
#

change the code

#

can't still see the change

stray crag
#

aside from the fact that you got a double assignement for who knows what it seems aight

stray crag
#

idfk i dont see an issue

jolly zealot
#

anyway thank u for the help brother

stray crag
#

sry bro i been hitting my head on the wall with pygame gui

#

not capable of think rn

jolly zealot
jolly zealot
#

i know how to fix it

stray crag
#

pls stop pinging me

jolly zealot
#

ohh sorry

#

!close

tall heartBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.