Created
June 18, 2023 19:09
-
-
Save default1200/625bbeedd5f9e49cfecfccfd33975119 to your computer and use it in GitHub Desktop.
Actor Godot Script for Jumping GDquest
This file contains hidden or 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 | |
class_name Actor | |
const FLOOR_NORMAL: = Vector2.UP | |
export var speed: = Vector2(300.0, 1000.0) | |
export var gravity: = 4000.0 | |
var velocity: = Vector2.ZERO | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment