Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DimitriyPS |
I export the project Godot 2 to Godot 3. I have encountered a number of difficulties and are unable to find the answers. Help please.
- To detect mouse movement (first-person control) I used the following code:
func _input(event):
if event.type==InputEvent.MOUSE_MOTION:
~
event.relative_x
event.relative_y
It doesn’t work in Godot 3 and I can’t find an equivalent solution.
- To retrieve the screen shot I used the call:
get_viewport().get_screen_capture ()
. But it doesn’t work the same. I don’t find his analogue.