This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var motion = Vector2(0,0) | |
var speed = 800 | |
var acc = 0.6 | |
var dec = 0.9 | |
var turn_speed = 150 | |
func _physics_process(delta): | |
get_input() | |
var movedir = Vector2(1, 0).rotated(rotation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends KinematicBody2D | |
const FRICTION = Vector2(10,0) | |
var speed = -800 | |
var turn_speed = 5 | |
var backup_speed = -250 | |
var backup_turn_speed = 3 | |
var motion = transform.y * speed |