XCoins
⚔ BETTING LEAGUE ⚔


ChatLog

First Previous 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 Next Last

time user name message
Dec 19, 2022 16:59:16

pythonista24x7

Twitch won't allow me to share links
Dec 19, 2022 16:58:53

007bionicalman

Ty so much
Dec 19, 2022 16:58:26

pythonista24x7

``` import pygame pygame.init() screen = pygame.display.set_mode([500, 500]) running = True x = 250 y = 250 while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: x -=10 if event.key == pygame.K_RIGHT: x +=10 screen.fill((255, 255, 255)) pygame.draw.circle(screen, (0, 0, 255), (x, y), 75) ```
Dec 19, 2022 16:58:20

pythonista24x7

Here is working example I've created from the tutorial
Dec 19, 2022 16:57:09

007bionicalman

Yes ok didn’t have glasses couldn’t see earlier
Dec 19, 2022 16:55:51

007bionicalman

What Did you see
Dec 19, 2022 16:52:11

007bionicalman

Tutorial above
Dec 19, 2022 16:51:54

007bionicalman

Tutorial https://realpython.com/pygame-a-primer/
Dec 19, 2022 16:49:24

pythonista24x7

This should draw it a different co-ordinate
Dec 19, 2022 16:49:15

pythonista24x7

Okay try this. screen.blit(player.surf, (50, 50))
Dec 19, 2022 16:47:48

simply_coh

What are you working on there doctor x?
Dec 19, 2022 16:47:01

007bionicalman

Ok
Dec 19, 2022 16:46:34

007bionicalman

The tutorial said to
Dec 19, 2022 16:45:33

pythonista24x7

screen.blit(sprite1, rect)
Dec 19, 2022 16:45:30

007bionicalman

@pythonista24x7 Thanks for the help
Dec 19, 2022 16:44:33

pythonista24x7

Try googling \"Pygame sprite not moving when key pressed [duplicate]\" find a stack overflow post
Dec 19, 2022 16:43:25

pythonista24x7

Try this: https://stackoverflow.com/a/65258397/549520
Dec 19, 2022 16:42:18

pythonista24x7

blit method is used to draw a object on the script
Dec 19, 2022 16:41:53

007bionicalman

Floats that’s html or css isn’t it
Dec 19, 2022 16:40:48

007bionicalman

I did so much research and problem solving I have no answers
Dec 19, 2022 16:40:35

pythonista24x7

You need to \"translate\" the player's x co-ordinate when left and right keys are pressed
Dec 19, 2022 16:39:46

pythonista24x7

Nope, it wont
Dec 19, 2022 16:38:59

pythonista24x7

The `blit` method need to be updated when key is pressed
Dec 19, 2022 16:35:03

007bionicalman

Oh
Dec 19, 2022 16:34:25

007bionicalman

What wasn’t called
Dec 19, 2022 16:33:06

007bionicalman

New family loop
Dec 19, 2022 16:28:41

007bionicalman

I’ve been so busy that it’s so nice just to lay in bed and listen and get your help but I will have to get moving and listen to you at some time
Dec 19, 2022 16:27:45

007bionicalman

Isn’t that the best one you said
Dec 19, 2022 16:25:47

007bionicalman

That one
Dec 19, 2022 16:24:57

sucantien_

yes you have made my day by making my eyes not turn orange

First Previous 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 Next Last