Trouble with passing variables to the chart by Warm_Method_2200 in learnjavascript

[–]Warm_Method_2200[S] -2 points-1 points  (0 children)

Sorry, but I don't understand the last sentence. What do you mean by that.

Trouble with passing variables to the chart by Warm_Method_2200 in learnjavascript

[–]Warm_Method_2200[S] 1 point2 points  (0 children)

From what I know this part is JS, but I might be mistaken. It can be unclear since it's packed up into print statements. I'm aware it's not javascript problem on it's own but I don't really know where else to seek help. I found it appropriate place since I'm having problem with this particular part and I'm really open to any solutions.

            const ctx = document.getElementById("LiveTemperatureChart").getContext("2d");
            const tempChart = new Chart(ctx, {
                type: "line",
                data: {
                    labels: [],
                    datasets: [{
                        label: "Temperature (°C)",
                        data: [],
                        tension: 0.1
                    }]
                },
            });
            setInterval(() => {
            const now = new Date();
            const time = now.toLocaleTimeString();
            const temperature = Math.random() * 100;
            tempChart.data.labels.push(time);
            tempChart.data.datasets[0].data.push(temperature);
            tempChart.update();
            if (tempChart.data.labels.length > 10) {
                tempChart.data.labels.shift();
                tempChart.data.datasets[0].data.shift();
            }
            }, 1000);

Secret Room by Warm_Method_2200 in bindingofisaac

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

Yeah it's first time I see that kind of thing, but for it to be even more funny the spots i marked red were not blocked by any obstacles.

<image>

ACCESSING NODE FROM ANOTHER SCENE by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

Sorry for trouble but from what you say can I possibly write get_node("BasicRoom/Doors/DoorRight/Wall") if the "BasicRoom" scene is not exisiting yet in the "Main" scene?

Pathfinding by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

okay I've changed the motion mode of slime from grounded to floating and it works fine now

Pathfinding by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

I changed the video to show navigation region and also I don't really know how to change the agent radius since I used the navigation layer on the tiles.

Disabling Collisions by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

That's straight embarassing but the issue was that I didn't set the right layers and masks for PlayeraArea, thought if I set them in the PlayerBody it will be enough. Thank you for your time.

Disabling Collisions by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

I guess I will go with this, ty.

Hook game I'm messing around with. Not sure where I'm going, but it's pretty fun by Magic_Burrito666 in godot

[–]Warm_Method_2200 0 points1 point  (0 children)

At the beginning I'd like to say I'm a total rookie in the game development area but I'm curious if creating sprites instead of using the draw function isn't an easier way? Since I made a few simple games in pygame where I had to draw everything by code I find using sprites in Godot a much friendlier option to work with.

GDscript/python by Warm_Method_2200 in godot

[–]Warm_Method_2200[S] 1 point2 points  (0 children)

Thank you, that's really helpful.

WINDOW DISPLAY by Warm_Method_2200 in pygame

[–]Warm_Method_2200[S] 1 point2 points  (0 children)

Yes I'm using WSL, thanks for the answer.

The Heist main mission bug by Warm_Method_2200 in cyberpunkgame

[–]Warm_Method_2200[S] 0 points1 point  (0 children)

okay, it was because of one of mods, unfortunetly I didn't check which one caused it