How to change player position or stop input for a while?

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

I have a KinematicBody2D and simple scene. In start plays something like a cutscene and I need to stop player when it plays.

extends Node2D

    func _ready():
    func _process(delta):
    	if Input.is_action_just_pressed("ui_accept"):

or i can make things more easier? if it is, then you can tell me.

(I actually have “wake_up” animation in animationplayer, but i can’t find way how to use it properly)

:bust_in_silhouette: Reply From: Mrpaolosarino

I think add a key in your animationplayer that consist of your Player’s position and set it up with
x = 0
y = 0.

This will stop the player

if this doesn’t work then, just completely make your player controller inaccessible for a period of time