Shifting Drawings Pygame












0















I have 3 differents functions which draws, Letters, Rectangles (Yellow and Red) and Update Rectangle Positions.



enter image description here



My functions



def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180



def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


This 2 is my main function when I set the display



This function updates new position of Rectangles



def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


I have a for loop that, iterates my rectangle positions each time. However, evertime when I make rectangles move, I want to show each step. (Ex: From first row to second row, second column to thir column etc..)



The problem is that, In my for loop, I have tried many things but couldn't managed to it. Any suggestion to accomplish this? I have tried, timer, wait, sleep, displayupdate maybe I am doing something wrong.



Here is my Loop



    for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0


To sum up, I would like to update my red and yellow rectangle positions each second. For example, Yellow rectangle is located on I,R 0 9, after a second It will go to H Q Z 8.



If you would like to see all my codes :



import pygame
import string
import sys
import time
import threading

Clock = pygame.time.Clock()
Iterator = 0


def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180


def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
DARKBLUE = (0, 0, 128)

pygame.init()

# Set the width and height of the screen [width, height]
size = (1700, 950)
screen = pygame.display.set_mode(size)

pygame.display.set_caption("Poligram")

# Loop until the user clicks the close button.
done = False

# Used to manage how fast the screen updates


# -------- Main Program Loop -----------
while not done:
# --- Main event loop

for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True

# --- Game logic should go here

# --- Screen-clearing code goes here

# Here, we clear the screen to white. Don't put other drawing commands
# above this, or they will be erased with this command.

# If you want a background image, replace this clear with blit'ing the
# background image.

screen.fill(WHITE)

# --- Drawing code should go here

LeftRightMove, UpdownMove = Fill(Iterator)

for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0

pygame.display.flip()

# --- Limit to 60 frames per second

# Close the window and quit.
pygame.quit()









share|improve this question

























  • Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

    – skrx
    Nov 25 '18 at 21:24











  • @skrx I hope this is better as it look. By example I try to explain what I want to achieve.

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:33











  • All codes are added as well. @skrx

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:58
















0















I have 3 differents functions which draws, Letters, Rectangles (Yellow and Red) and Update Rectangle Positions.



enter image description here



My functions



def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180



def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


This 2 is my main function when I set the display



This function updates new position of Rectangles



def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


I have a for loop that, iterates my rectangle positions each time. However, evertime when I make rectangles move, I want to show each step. (Ex: From first row to second row, second column to thir column etc..)



The problem is that, In my for loop, I have tried many things but couldn't managed to it. Any suggestion to accomplish this? I have tried, timer, wait, sleep, displayupdate maybe I am doing something wrong.



Here is my Loop



    for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0


To sum up, I would like to update my red and yellow rectangle positions each second. For example, Yellow rectangle is located on I,R 0 9, after a second It will go to H Q Z 8.



If you would like to see all my codes :



import pygame
import string
import sys
import time
import threading

Clock = pygame.time.Clock()
Iterator = 0


def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180


def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
DARKBLUE = (0, 0, 128)

pygame.init()

# Set the width and height of the screen [width, height]
size = (1700, 950)
screen = pygame.display.set_mode(size)

pygame.display.set_caption("Poligram")

# Loop until the user clicks the close button.
done = False

# Used to manage how fast the screen updates


# -------- Main Program Loop -----------
while not done:
# --- Main event loop

for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True

# --- Game logic should go here

# --- Screen-clearing code goes here

# Here, we clear the screen to white. Don't put other drawing commands
# above this, or they will be erased with this command.

# If you want a background image, replace this clear with blit'ing the
# background image.

screen.fill(WHITE)

# --- Drawing code should go here

LeftRightMove, UpdownMove = Fill(Iterator)

for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0

pygame.display.flip()

# --- Limit to 60 frames per second

# Close the window and quit.
pygame.quit()









share|improve this question

























  • Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

    – skrx
    Nov 25 '18 at 21:24











  • @skrx I hope this is better as it look. By example I try to explain what I want to achieve.

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:33











  • All codes are added as well. @skrx

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:58














0












0








0








I have 3 differents functions which draws, Letters, Rectangles (Yellow and Red) and Update Rectangle Positions.



enter image description here



My functions



def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180



def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


This 2 is my main function when I set the display



This function updates new position of Rectangles



def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


I have a for loop that, iterates my rectangle positions each time. However, evertime when I make rectangles move, I want to show each step. (Ex: From first row to second row, second column to thir column etc..)



The problem is that, In my for loop, I have tried many things but couldn't managed to it. Any suggestion to accomplish this? I have tried, timer, wait, sleep, displayupdate maybe I am doing something wrong.



Here is my Loop



    for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0


To sum up, I would like to update my red and yellow rectangle positions each second. For example, Yellow rectangle is located on I,R 0 9, after a second It will go to H Q Z 8.



If you would like to see all my codes :



import pygame
import string
import sys
import time
import threading

Clock = pygame.time.Clock()
Iterator = 0


def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180


def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
DARKBLUE = (0, 0, 128)

pygame.init()

# Set the width and height of the screen [width, height]
size = (1700, 950)
screen = pygame.display.set_mode(size)

pygame.display.set_caption("Poligram")

# Loop until the user clicks the close button.
done = False

# Used to manage how fast the screen updates


# -------- Main Program Loop -----------
while not done:
# --- Main event loop

for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True

# --- Game logic should go here

# --- Screen-clearing code goes here

# Here, we clear the screen to white. Don't put other drawing commands
# above this, or they will be erased with this command.

# If you want a background image, replace this clear with blit'ing the
# background image.

screen.fill(WHITE)

# --- Drawing code should go here

LeftRightMove, UpdownMove = Fill(Iterator)

for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0

pygame.display.flip()

# --- Limit to 60 frames per second

# Close the window and quit.
pygame.quit()









share|improve this question
















I have 3 differents functions which draws, Letters, Rectangles (Yellow and Red) and Update Rectangle Positions.



enter image description here



My functions



def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180



def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


This 2 is my main function when I set the display



This function updates new position of Rectangles



def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


I have a for loop that, iterates my rectangle positions each time. However, evertime when I make rectangles move, I want to show each step. (Ex: From first row to second row, second column to thir column etc..)



The problem is that, In my for loop, I have tried many things but couldn't managed to it. Any suggestion to accomplish this? I have tried, timer, wait, sleep, displayupdate maybe I am doing something wrong.



Here is my Loop



    for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0


To sum up, I would like to update my red and yellow rectangle positions each second. For example, Yellow rectangle is located on I,R 0 9, after a second It will go to H Q Z 8.



If you would like to see all my codes :



import pygame
import string
import sys
import time
import threading

Clock = pygame.time.Clock()
Iterator = 0


def DrawText():
Alphabet = list(string.ascii_uppercase + string.digits)

HorizontalIterator = 0
VerticalIterator = 0
for i in range(len(Alphabet)):
font = pygame.font.SysFont('Arial', 250, True, False)
font = pygame.font.Font(None, 225)
text = font.render(Alphabet[i], True, BLACK)
screen.blit(text, [20 + HorizontalIterator, 100 + VerticalIterator])
HorizontalIterator = HorizontalIterator + 190
if HorizontalIterator >= 1700:
HorizontalIterator = 0
VerticalIterator = VerticalIterator + 180


def Fill(Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 95))

return RectangleHorizontal, RectangleVertical


def NewPositionOfRectangle(RectangleHorizontal, RectangleVertical, Iterator):
RectangleHorizontal = pygame.Surface((140, 700), pygame.SRCALPHA, 32)
RectangleHorizontal.fill(((255, 255, 0, 150)))
screen.blit(RectangleHorizontal, (10 + Iterator, 95))

# Vertical Rectangle
RectangleVertical = pygame.Surface((1650, 140), pygame.SRCALPHA, 32)
RectangleVertical.fill(((255, 0, 0, 150)))
screen.blit(RectangleVertical, (10, 635))


# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
DARKBLUE = (0, 0, 128)

pygame.init()

# Set the width and height of the screen [width, height]
size = (1700, 950)
screen = pygame.display.set_mode(size)

pygame.display.set_caption("Poligram")

# Loop until the user clicks the close button.
done = False

# Used to manage how fast the screen updates


# -------- Main Program Loop -----------
while not done:
# --- Main event loop

for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True

# --- Game logic should go here

# --- Screen-clearing code goes here

# Here, we clear the screen to white. Don't put other drawing commands
# above this, or they will be erased with this command.

# If you want a background image, replace this clear with blit'ing the
# background image.

screen.fill(WHITE)

# --- Drawing code should go here

LeftRightMove, UpdownMove = Fill(Iterator)

for Iterator in range(0, 1530, 190):

NewPositionOfRectangle(LeftRightMove, UpdownMove, Iterator)

screen.fill(WHITE)
DrawText()
Fill(Iterator)

if Iterator == 1520:
Iterator = 0

pygame.display.flip()

# --- Limit to 60 frames per second

# Close the window and quit.
pygame.quit()






python graphics timer pygame






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 21:56







Ibrahim Sefa Ozyesil

















asked Nov 25 '18 at 21:16









Ibrahim Sefa OzyesilIbrahim Sefa Ozyesil

347




347













  • Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

    – skrx
    Nov 25 '18 at 21:24











  • @skrx I hope this is better as it look. By example I try to explain what I want to achieve.

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:33











  • All codes are added as well. @skrx

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:58



















  • Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

    – skrx
    Nov 25 '18 at 21:24











  • @skrx I hope this is better as it look. By example I try to explain what I want to achieve.

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:33











  • All codes are added as well. @skrx

    – Ibrahim Sefa Ozyesil
    Nov 25 '18 at 21:58

















Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

– skrx
Nov 25 '18 at 21:24





Please post a minimal, complete (runnable) and verifiable example and make sure that it's formatted correctly (select the code and press Ctrl+K to indent it once). -- It's also not really clear to me what you want to achieve. Please provide more details about your goals and issues.

– skrx
Nov 25 '18 at 21:24













@skrx I hope this is better as it look. By example I try to explain what I want to achieve.

– Ibrahim Sefa Ozyesil
Nov 25 '18 at 21:33





@skrx I hope this is better as it look. By example I try to explain what I want to achieve.

– Ibrahim Sefa Ozyesil
Nov 25 '18 at 21:33













All codes are added as well. @skrx

– Ibrahim Sefa Ozyesil
Nov 25 '18 at 21:58





All codes are added as well. @skrx

– Ibrahim Sefa Ozyesil
Nov 25 '18 at 21:58












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53472059%2fshifting-drawings-pygame%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53472059%2fshifting-drawings-pygame%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tonle Sap (See)

I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

Guatemaltekische Davis-Cup-Mannschaft