#๐Ÿ”’ New lines not being created in my string

42 messages ยท Page 1 of 1 (latest)

swift breachBOT
#

@cobalt cedar

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.

cobalt cedar
#
"You are a butler and was hired\nto work for a mansion. You arrive at the mansion and notice\nit's abandoned. You walk inside wondering what\nmysteries lie ahead."
mint sedge
#

!e

print("You are a butler and was hired\nto work for a mansion. You arrive at the mansion and notice\nit's abandoned. You walk inside wondering what\nmysteries lie ahead.")
swift breachBOT
#

@mint sedge :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | You are a butler and was hired
002 | to work for a mansion. You arrive at the mansion and notice
003 | it's abandoned. You walk inside wondering what
004 | mysteries lie ahead.
mint sedge
#

Seems like it works

cobalt cedar
#

but it's not working in game

mint sedge
#

You'll have to share some more details then

cobalt cedar
cobalt cedar
mint sedge
#

What?

cobalt cedar
#

Bruh

#

You see how there's no new lines

mint sedge
#

I do

cobalt cedar
#

Literally broke and i don't know why

mint sedge
#

Tell me what looking at though

cobalt cedar
mint sedge
#

You need to know that I know zero about what you're doing

cobalt cedar
#

the original file i had i replaced with the one i edited same game tho

cobalt cedar
#

all you need to know is about the issue and how it's happening and possible causes

mint sedge
#

Ok I'll be more specific:

Can you share your code?
Are you using a GUI framework?
Is this being run on some online platform?

I need details to be able to help

high forge
#

If you were simply printing to a terminal, it would work

mint sedge
#

As we demonstrated already

cobalt cedar
high forge
#

Meltz so kindly is trying to help you and being patient with you, but none of us can read your mind.

cobalt cedar
#

I'm actually rendering the font in pygame

mint sedge
high forge
cobalt cedar
cobalt cedar
mint sedge
high forge
#

you gtg AND need it fixed ASAP? lol

cobalt cedar
#

I do tf

high forge
#

well i'll leave this here for when you come back

#

We have already discussed displaying text on screen in pygame but if the text is long then it might run out of the screen although it is there you might not be able to see it. So to solve this problem we have displaying text in several lines. This program makes a lot of use of basic python functions but it is used with pygame and hence it would ...

โ–ถ Play video
cobalt cedar
#

Ok that's way too much

high forge
#

๐Ÿคท that's game dev for you

cobalt cedar
#

This supposed to be fast not 20 minutes just to fix one simple issue

#

There's gotta be a faster way

swift breachBOT
#
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.