Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprites and Actor error
#2
What's the name of the book? Or, if you have a direct link to Amazon, that'd be helpful.

Actor isn't something in the standard library, so without more information, I'm not sure what package it's trying to use. Unless (and this is a strong possibility) it's a custom package designed specifically for the book, in which case Actor would be from an earlier chapter.

Depending on the author, all the code in the book could be (...probably is) online somewhere, possibly on the publisher's site, possibly on github. Either way, the first couple pages of the book would say where the code can be found.

One of the problems with books, in general, is if there's a typo or mistake, they can't fix it. So there will be errata released on the publisher's site saying what the right code is, or possibly reworded explanations of things. Which brings us back to the beginning when I asked which book it is, exactly :p


*edit* OR! If you give us a little more context, like how the Actor class is used (full code helps), we can probably figure out what it's doing and write one close enough to what the code in the book is expecting.
Reply


Messages In This Thread
Sprites and Actor error - by ajlconsulting - Nov-07-2018, 12:41 AM
RE: Sprites and Actor error - by nilamo - Nov-07-2018, 01:04 AM
RE: Sprites and Actor error - by ajlconsulting - Nov-07-2018, 08:46 AM
RE: Sprites and Actor error - by metulburr - Nov-07-2018, 01:02 PM
RE: Sprites and Actor error - by nilamo - Nov-07-2018, 04:25 PM
RE: Sprites and Actor error - by nitin - Jan-30-2019, 12:00 AM
RE: Sprites and Actor error - by metulburr - Jan-30-2019, 12:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pygame, sprites, and rects menator01 12 2,131 Dec-07-2023, 02:37 AM
Last Post: Benixon
  [PyGame] Sprites just randomly appear and dissapear in my pygame.sprite.GoupeSingle trueShadoWrr 2 2,046 Feb-13-2023, 09:34 AM
Last Post: Vadanane
  Pygame Zero - no actor image toiling_away 2 1,887 Oct-14-2022, 12:16 AM
Last Post: toiling_away
  [PyGame] I found a way to generate sprites without .blit. Is it effecient? xBlackHeartx 19 8,653 Dec-07-2019, 01:06 PM
Last Post: metulburr
  [PyGame] Having 4 players(Sprites) all being able to jump ElijahCastle 5 4,079 May-07-2019, 05:04 PM
Last Post: SheeppOSU
  draw not showing all sprites ethanstrominger 0 2,639 Jan-25-2019, 10:10 PM
Last Post: ethanstrominger
  [PyGame] move randomly sprites reutB 4 8,303 Mar-29-2017, 01:12 PM
Last Post: metulburr
  How can I get rid of the line following the sprites? Houston11 1 3,782 Jan-06-2017, 10:14 PM
Last Post: Mekire

Forum Jump:

User Panel Messages

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