Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ryugomez |
I want to implement unique logic per level, and it seems that my code is quite cumbersome because I defined all the logic per level only on a single function of a single file. The levels are not to be changed; they will stay the same in the same scene.
Inside Main.gd
func _physics_process(delta):
match level:
1: ...
2: ...
3: ...
In every logic, I’m constantly changing the physics bodies’ velocity so put it inside the _physics_process
function.
I don’t think if that’s the good idea to get working with, but I think there’s always a better one.