e8johan / supermemory

Simple memory game created with Godot.
Apache License 2.0
4 stars 0 forks source link

Game crash #1

Open ds2k5 opened 3 years ago

ds2k5 commented 3 years ago

Hi, I did a git clone https://github.com/e8johan/supermemory an add this to godot 3.2.3

If I run the game got this error:

Screen Capture_select-area_20201208210113

How can I fix this ?

e8johan commented 3 years ago

Hi @ds2k5 !

It seems like a new warning/error is Godot. I believe I was on 3.1.x when developing this. Just do what it says, and change shape_id to _shape_id, and I think it should be fine.

ds2k5 commented 3 years ago

Thanks

I did but did not work for me

Screen Capture_select-area_20201209103326 Screen Capture_select-area_20201209103352

Screen Capture_select-area_20201209103557

W 0:00:00.848 The argument 'viewport' is never used in the function '_input_event'. If this is intended, prefix it with an underscore: '_viewport' <C++ Error> UNUSED_ARGUMENT

card_clickable.gd:5 then I changed to: func _input_event(_viewport, event, _shape_id): ``` extends Area2D signal clicked func _input_event(_viewport, event, _shape_id): if event is InputEventMouseButton: if event.is_pressed() and event.button_index == BUTTON_LEFT: self.emit_signal("clicked") ``` but did not work for me no error messages but game did not run Parser Error: A non-void function must return a value in all possible paths.