Sorry about that
Here is the bullet's code \/\/\/
`extends KinematicBody2D
var speed = 1000
var dir
var pos
var velocity = Vector2()
var accel
var loop = 1
var shooty
func _ready():
dir = Pewww.shooty
pos = self.position.x
self.position = Pewww.pos
shooty = Pewww.shooty
func process(delta):
velocity.x += speed * delta
velocity.y += Pewww.change.y
velocity.x = velocity.x * shooty
moveand_slide(velocity)
if loop == 1:
loop = 2
yield(get_tree().create_timer(1.0),"timeout")
queue_free()
And here is Pewww, the thing that the Bullet's code takes some stuff from
extends Node
var direction = 1
var shooty = 1
var pos = Vector2.ZERO
var change = Vector2()
func process(delta):
if Input.isactionjustpressed("uileft"):
shooty = -shooty
if Input.isactionjustpressed("ui_right"):
shooty = abs(shooty)