How do I use KinematicBody2D functions on a script that inherits from it´s script?

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

So…
I have a KB2D root node Scene called “Character.tscn”, with a Script also called “Character.gd”

Then I have an inherited Scene (from Character.tscn) called “Player.tscn”, with a Script that inherits from “Character.gd”, called “Player.gd”

CHARACTER:

extends KinematicBody2D

const VELOCIDAD = 10
const VELOCIDAD_MAXIMA = 200
const FRICCION = 0.1

PLAYER:

extends “res://Personaje.gd”

func _process(delta):
pass

So far so good,BUT…
When I try to use for example move_and_slide in Player.gd, GDScript doesn´t recognize it, as if it weren´t part of the built in methods. oddly enough it CAN print the variables assigned in the original script, so it seem to be inheriting just fine.

My question is: Do I need to do something else in order to get the kinematic functions, even if both scenes are KB2D?

I´ve seen some tutorials, but they don´t do anything else, besides setting the extend on line 1.
Seems something to simple to fail, yet it does. I´m using GODOT 3.1.1 by the way.

Why did you clone How can I access built in functions in a inherited script - Archive - Godot Forum ?

null_digital | 2020-01-12 11:42