i´d like to know if i can create a object in python. Furthermore a Object with attributes like pos.x and pos.y.
I´m currently in the Level where you should go to an teleporter where an ogre comes to close to you. My idea was to use an array of objects and pass it on the “find.nearest(arr)” command to find the shortest way.
But i´m unable to do it and would like to know if its even possible or if i have to switch to “if self.pos.x < 40 and if self.pos.y < 40…”.