So I was following this old tutorial for godot 3 where it showed you could transition to the next level by taking the level name, finding the integer in it’s name, and adding +1 to it to load the next level. (https://www.youtube.com/watch?v=c2mkyW_TymY)
Yes, I know you can convert int to string. That’s what: str(int(get_tree().current_scene.name)+1) was supposed to do. It gets the only integer value in the name and converts to a string. or at least that’s what it’s supposed to do.
Sorry only checked code from video, the problem is StringName cant be converted to int by int(), but it has a function .to_int() that does the same as int() so you just need to write it like this: