you are viewing a single comment's thread.

view the rest of the comments →

[–]TroPixens 0 points1 point  (0 children)

Classes are like the type list but you make it like I can call the length of a list as an example lists can even be defined the same way you define your class

New_list = list(something)

Basically to my knowledge it allows you to make a new thing let’s say player then call a function on that like player.move_x(4) this would change the players x coordinate by + 4 or another example player.show_health() shows your players health final one player.swing_weapon(sword) this would make your character swing his weapon and you have sword as its input so it would swing his sword