Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | the_priest92 |
Hello, guys
I am trying to make a simple game but the controls of the game does not start. I folow a tutorial, but in the tutorial everything is OK, but not on my side. I am using Ubuntu 18.06 and this is the code
extends KinematicBody2D
func _ready():
set_physics_process(true)
func _fixed_process(delta):
var y = get_pos().y
var mouse_x = get_viewport().get_mouse_possition().x
set_pos(Vector2(mouse_x, y))
Thanks in advance!
Are you running Godot 2.0 or 3.0?
SIsilicon | 2018-10-07 03:40