#๐Ÿ”’ the player in my code is continously falling down,can u help?

31 messages ยท Page 1 of 1 (latest)

idle bluffBOT
#

Hey @hexed violet!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
#

@hexed violet

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.

karmic sphinx
#

!paste

idle bluffBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

karmic sphinx
#

Use this

hexed violet
idle bluffBOT
#

Hey @hexed violet!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
hexed violet
#

you gotta add 3 backticks before and after your code when you paste it into discord

#

like:

code
#

it'll show up like this ^

#

the backtick is usually the key to the left of your 1 key on your keyboard

#

no you used the single quotation mark

#

backtick below Escape key

#

left side of keyboard

worthy barn
#

use `

#

three times

hexed violet
#

there you go now just add the word python after the first 3 backticks

#

you put the word python before the backticks

#

it should be after

#

the first 3

#

'''python
code
'''
but with backticks

idle bluffBOT
#

Hey @hexed violet!

Please edit your message to use a code block

Make sure you put your code on a new line following python. There must not be any spaces after python.

Here is an example of how it should look:
```python
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
hexed violet
#

no see the bot's answer here ^

#

there you go :)

karmic sphinx
#

Use the paste bin

#

!paste

idle bluffBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

hexed violet
#

this is where the player is falling:

    if character_rect.bottom>=480:
            character_rect.bottom=480

you just need to reset the gravity back to zero again

#
    # This is checking to see if the player has hit the bottom yet:
    if character_rect.bottom>=480:
        character_rect.bottom=480
        # This resets the gravity
        character_gravity = 0
idle bluffBOT
#
Python help channel closed for inactivity

This help channel has been closed. 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.