Comments

Log in with itch.io to leave a comment.

Been playing around with this, and it's pretty awesome! Thanks so much for making something like this!

One question: if I want to make my player character switch to a different kind of scene (a battle scene instead of a level) and then back again to the level it was originally on, can this be easily done so the Scenemanager keeps position data from not the previous (battle) scene, but the one before (the level)? So it remembers the player position before you switched to the battle scene, and returns you there.

(I hope that makes sense).

(+1)

It has been a long time since I looked at this, but IIRC I set it up so that you can pass whatever data you want between scenes. So you should be able to easy modify it to pass whatever you want between levels - I probably just had a helper that managed some things automatically as a common use case.

I think I made some upgrades to this in my game template (which I also haven't looked at in a while). Maybe that will be better suited for your needs? 

https://baconandgames.itch.io/godot-game-template

I see, that's good - I'm probably just still too green to immediately see how to do it, but I'll try tinkering some more!

That other template looks great too, with the added settings menu and all. Thanks for the link!

For sure! I'm sorry that I'm not as helpful as I'd like to be. I made both of these a while ago and haven't done much with them since, so it's tough for me to give you answers off the top of my head. Feel free to drop by the Discord server, others there may be able to jump in. 

That's alright, thanks still! This is all great stuff you've made available. I'll try hop by the discord :)

(1 edit)

Hello 

The scene Manager sounds great on YouTube but I'm just too lazy to copy all the code. What do I do after I downloaded the stuff from here? 

I'm looking forward to a reply and thanks a bunch

(+1)

The code is all here for you to download, the YouTube video walks you through how to use it. I'm not sure what else I can offer you - those two things are everything you need to use this.

In the Scene manager 1.1 demo moving up to the dark room works.  But moving left to the next room gives the error :  Attempt to call function 'get_parent' in base 'previously freed' on a null instance.

This occurs in the start_screen.gd file in the _on_level_added method on line 32 just after you check for null on the _loading_screen object.

I hope that helps.

I'm using Godot 4.3 beta 1

I just tested in Godot 4.3 beta 2.  Same issue

The new version works great!

Hello gracious developer,

I am a fan of your tutorials and I plan on using this Scene Manager to properly develop some games.

I'm unsure of the best way to contribute to your source code as I ran into an issue. It might be because I am using Godot v4.3 beta2.

Running your example game, when I run through the door immediately to the left I error out with "Attempt to call function 'get_parent_ in base 'previously freed' on a null instance" (gameplay.gd:32 - at function: _on_level_added).

The issue is that when the loading screen is freed the variable _loading_screen becomes "<Freed Object>" and not null. _loading_screen != null is satisfied and that block of code runs even though _loading_screen is intended to be null.

Solution: replace line 31 with `if is_instance_valid(_loading_screen):`

When you run that you will get a similar error again somewhere else and then just repeat the solution. 

I apologize for the essay, but I hope this helps someone.

Hey there! Thanks so much for the detailed info. It’s been on my list to check this against 4.3 so I will add this to my list when I have time to get to it. I appreciate it!!!

This is interesting! Can I use this to manage 3D scenes?

I’ll be honest, I haven’t tried that. I suspect the transitions (certainly the Zelda one) would need to be modified at the very least. I generally don’t make 3D games so I wasn’t thinking about that use case 🤔 Perhaps that’s something I’ll add in future versions. If you decide to download it and try, let me know how it goes. 

Thank you for clarifying, I haven't downloaded it yet, I'm only focusing on 3D game dev so I had to make sure that it will work first before downloading it.

Sure thing. I'm only focusing on 2D right now so I haven't thought about making this work for 3D games... but I'll put that on the roadmap!

Yes, it probably can... I never installed this but scenes are scenes
And it's just managing it so it can technically work for both.

Hi there, what is the license for the source code? Could I include snippets in my commercial game?

Absolutely! This is free for you to use in commercial projects! Thanks for asking. 

Thank you!