Nov-07-2018, 01:02 PM
(Nov-07-2018, 08:46 AM)ajlconsulting Wrote: The book just referenced it with no import statementAre you sure that book did not define Actor class before that section somewhere? Did it reference a Glossary in the end of the book that defines classes? Or do they reference an online source of code somewhere?
It could be as little as
class Actor: passHowever if they use methods (class functions) like this
apple = Actor("apple") apple.update()then there is more defined in the Actor class.
Quote:So I'll move on! I just need to find the best library to manage sprites.I would be cautious moving on. You can easily have the same occur later on and not find another class defined without finding where Actor is defined. And you would be more involved in the book by then. Possibly even more confused.
In what way are you using sprites? In games, pygame is the most used library for displaying and moving sprites.
Recommended Tutorials: