Error calling method from signal 'timeout' after export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BlueDolphinCow

I’m new to Godot and I’m making a simple platform game. The game works as expected when played inside the engine however, after exporting to html5, I get an error in the console.

put_char @ index.js:7
index.js:7 **ERROR**: Error calling method from signal 'timeout': 'KinematicBody2D::_on_Ghost_Timer_timeout': Method not found..```
I'm wondering if anyone could explain this or offer any suggestions on how to fix it.

Edit:
The method ```_on_Ghost_Timer_timeout``` is spelled correctly and exists
![image of function](https://i.imgur.com/mGfMdQN.png)

[wrap=comment]
The error is saying that the function `_on_Ghost_Timer_timeout()` doesn't exist, but you have connected the signal to that function. Did you maybe rename it?
[wrap=footnote]kidscancode | 2020-03-10 23:55[/wrap]
[/wrap]

[wrap=comment]
It exists and is spelled correctly. I edited my post and put an image there.
[wrap=footnote]BlueDolphinCow | 2020-03-11 20:37[/wrap]
[/wrap]
:bust_in_silhouette: Reply From: BlueDolphinCow

I rewrote the script and it seems to work now. Not sure why it didn’t work initially because I didn’t change anything.

I also have this problem. It only occurs in the Android version.

file.tscn
[node name="Timer" type="Timer" parent="."] wait_time = 0.05 autostart = true [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]

file.gd
func _on_Timer_timeout(): ...

dpensky | 2021-03-23 14:04