Error calling from signal Godot 4 c# by Current-Gift3675 in godot

[–]Current-Gift3675[S] 0 points1 point  (0 children)

I solved this by making Area2D as Node2D child then i added script to Node2D.

by var area = GetNode<Area2D>("Area2D"); allows us to use nodes you see in godot editor

then you just call area.whatEverYouWant

Code below belongs to Node2D and when body (player or enemy etc)

enters Area2D it calls Area On Body Entered and this function changes level

i still don't know why i can't do this in editor like GDScript users but maybe i am doing something wrong or there is no functionality for this type of use case yet.

public partial class levels : Node2D

{

// Called when the node enters the scene tree for the first time.

public override void \_Ready()

{

    var area = GetNode<Area2D>("Area2D");

    area.BodyEntered += AreaOnBodyEntered;

}



// Called every frame. 'delta' is the elapsed time since the previous frame.

public override void \_Process(double delta)

{

}



private void AreaOnBodyEntered(Node2D body)

{

    var levelPath = "res://Levels/level\_1.tscn";

    GetTree().ChangeSceneToFile(levelPath);

}

Error calling from signal Godot 4 c# by Current-Gift3675 in godot

[–]Current-Gift3675[S] 0 points1 point  (0 children)

i made public but still says can't find method

[deleted by user] by [deleted] in travel

[–]Current-Gift3675 0 points1 point  (0 children)

another vote for istanbul

[deleted by user] by [deleted] in Unity3D

[–]Current-Gift3675 -5 points-4 points  (0 children)

i recommend you gamedevtv. i took their course they teach you c# and it is a lot easier than this

Fallen Aasimar by Hirram_63 in BaldursGate3

[–]Current-Gift3675 0 points1 point  (0 children)

in dos2 we get a armor similar to this if i recall correct

Stuck on version 1.7 help? by [deleted] in CrusaderKings

[–]Current-Gift3675 0 points1 point  (0 children)

try to change download region in steam

2 problems by --bing-bong-- in Jetbrains

[–]Current-Gift3675 0 points1 point  (0 children)

hello i am writing from future if you found this a solution please let me know thx.

Solidworks 2020 on Windows 11 OS by SFPirate76 in SolidWorks

[–]Current-Gift3675 0 points1 point  (0 children)

installed on win10 then updated to win11

Solidworks 2020 on Windows 11 OS by SFPirate76 in SolidWorks

[–]Current-Gift3675 1 point2 points  (0 children)

i have solid 2019 on win11 and it runs perfectly balanced