Skip to content
Sign upLog in

Deleting a Block

Profile icon
51LV3RC0D3R

So I am creating a game in pygame
I was wondering how to delete the block in class Level_01.

DudeHexafandra

You are viewing a single comment. View All
Profile icon
[deleted]

@DudeHexafandra
that is, because its a local var so you have to return it

#return level
#Use the function with the return
new_level=<class_name>.<function_name()
#function name is option, because the init()
#Is always executed