godot set tilesteemCreated with Sketch.

in godot •  7 years ago 

It is from godot 2d demo isometric

func _input(e):
    if (e is InputEventMouseButton
    and e.button_index == BUTTON_LEFT and not e.pressed):
        var gmpos = get_global_mouse_position()
        $floor.set_cellv($floor.world_to_map(gmpos),1)
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!