Im trying to make a game on pygame for my school project. And i followed clearcodes ultimate guide for python where he creates a runner game. In that video he creates a single place where the enemy rects spawn in. But im trying to make a platformer game where enemies can appear in multiple places.
I know the problem is that ive made it so the rect for the enemies are in a set coordinates so if i try to create a new enemy it would be placed in the same exact location. But i just dont know how to make it so it can be changed for different enemies.
i am very new here so sorry if this doesnt make much sense but heres the code
pastbin
https://pastebin.com/rwAZ7SKD
Ive tried watching some more clearcode videos and i notice he uses ‘pos’ instead of the coordinates for the rect but i do not understand how that would place the enemy. (once again i apologise im not very good at this)
Billy Aiken is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.