Python Forum
[PyGame] Problem assigning positions on CC plane.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Problem assigning positions on CC plane.
#3
(Sep-19-2016, 01:52 AM)metulburr Wrote:
(Sep-19-2016, 01:41 AM)Gengar Wrote: for some reason it only gives the value <rect(1856, 960, 64, 64)>

Quote:
   def make_tiles(self, ):
       self.tile_rect = pygame.Rect(ORIGIN, [TILE for x in xrange(2)])
       for i in range(self.amount_of_tiles):
           self.tile.append(self.tile_rect)


In this method you are appending to the tile list the tile_rect attribute which is the same rect. What else are you expecting?

Ty for your solution.
Reply


Messages In This Thread
RE: Problem assigning positions on CC plane. - by Gengar - Sep-19-2016, 03:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] assigning rect to sprite pfaber11 1 2,196 May-18-2019, 05:39 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020