Recent content by monkeyelf

  1. M

    Rect location problem

    import pygame, random import math, sys class Dot(object): """Dot object""" def __init__(self): self.surf = pygame.image.load("arrow.png").convert_alpha() self.rect = pygame.Rect(0,0,50,50) self.frame = 0 self.dir = 0 # 0 = up, 1 = down, 2 = left, 3 = right...
  2. M

    Rect location problem

    I'll start of by saying I'm very new to python/pygame and even before that I don't have a lot of programming experience. My problem is that I have a rectangle called platform, and when I use platform.surf.get_rect the rect appears at 0,0 instead of 200,300 the location of platform. My code is...
Back
Top