Advertisement
actuallykron

Godot 4 - Bullet Movement

Sep 23rd, 2023 (edited)
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDScript 0.14 KB | Source Code | 0 0
  1. extends CharacterBody2D
  2.  
  3. @export var speed = 500
  4.  
  5. func _physics_process(delta):
  6.    
  7.     velocity = transform.x  * speed
  8.     move_and_slide()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement