Advertisement
ignacy123

Gemetry Dash - Actor.gd

Aug 7th, 2023 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. extends KinematicBody2D
  2.  
  3. class_name Actor
  4.  
  5. const FLOOR_NORMAL: = Vector2.UP
  6.  
  7. export var speed: = Vector2(300.0, 1000.0)
  8. export var gravity: = 3000.0
  9.  
  10. var velocity: = Vector2.ZERO
  11.  
  12. func _physics_process(delta: float) -> void:
  13. velocity.y += gravity * delta
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement