Skip to content

Instantly share code, notes, and snippets.

@default1200
Created June 18, 2023 19:09
Show Gist options
  • Save default1200/625bbeedd5f9e49cfecfccfd33975119 to your computer and use it in GitHub Desktop.
Save default1200/625bbeedd5f9e49cfecfccfd33975119 to your computer and use it in GitHub Desktop.
Actor Godot Script for Jumping GDquest
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