- ๐ญ Iโm currently working on my website - newdev.web.app
- ๐ซ How to reach me: dos_cutey on Discord, @Futrzasty on Telegram
I'm dumb furry, IT, Audio and Programming enthusiast
License: MIT License
I'm dumb furry, IT, Audio and Programming enthusiast
The asset submission says the asset's license is MIT. Please add a copy of the MIT license to the repository to confirm this ๐
trest
I'm testing here, and I have this flow: language_select->menu->gameplay->menu
everything works well, until I have to go to menu from the gameplay. I got this error:
do you have any idea on how to solve that?
PS: I've converted your BackgrounLoader to Csharp, the code is the same, so this is not the problem here!
The C# Version:
using Godot;
using System;
namespace Common
{
public class BackgroundLoader : Node
{
public static BackgroundLoader instance = null;
Resource res;
public bool canChange = false;
Thread thread;
Node newScene;
string scenePath = "";
public override void _Ready()
{
instance = this;
}
private void ThreadLoad(string path) {
ResourceInteractiveLoader ril = ResourceLoader.LoadInteractive(path);
int total = ril.GetStageCount();
res = null;
while(true) {
Error err = ril.Poll();
if (err == Error.FileEof) {
res = ril.GetResource();
canChange = true;
break;
}
else if (err != Error.Ok) {
GD.Print("ERROR LOADING");
break;
}
}
}
private void ClearStuff() {
thread = null;
newScene = null;
scenePath = "";
canChange = false;
res = null;
}
private void ThreadDone(PackedScene packedScene) {
thread.WaitToFinish();
newScene = packedScene.Instance();
GetTree().CurrentScene.Free();
GetTree().CurrentScene = null;
GetTree().Root.AddChild(newScene);
GetTree().CurrentScene = newScene;
ClearStuff();
}
public void PreloadScene(string path) {
GD.Print("Calling new Scene");
scenePath = path;
canChange = false;
thread = new Thread();
thread.Start(this,nameof(ThreadLoad), path);
Raise();
}
public void ChangeSceneToPreloaded() {
CallDeferred(nameof(ThreadDone), res);
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.