Valks-Games/sankari

Attempted to convert to new Callable in Godot 4 Beta 4 but got 2 errors

valkyrienyanko opened this issue · 2 comments

I recently tried to convert to the new Callable used in Godot 4 Beta 4 (see fd78d2f)

But I ran into 2 errors when dashing in game. These methods are in MovingEntityCommandDash.cs in Initialize() method. (see https://github.com/Valks-Games/sankari/blob/godot4beta4/Scripts/Entities/Commands/MovingEntityCommandDash.cs)

image

What am I doing wrong here?

Okay actually I see a problem, I create a new Callable with a target of Entity and methods that are not defined in Entity.

But it was working before?

Commented out "OnDashDurationDone?.Invoke" but that does not seem to effect gameplay at all so going to roll with these changes 781c0ac