confused. In master docs under custom signals comes the following:
func take_damage(amount):
var old_health = health
health -= amount
emitsignal("healthchanged", old_health, health)
yet under the section on scene instancing
extends Sprite2D
signal shoot(bullet, direction, location)
var Bullet = preload("res://Bullet.tscn")
func _input(event):
if event is InputEventMouseButton:
if event.buttonindex == MOUSEBUTTON_LEFT and event.pressed:
shoot.emit(Bullet, rotation, position)
Are they the same or different and why?
Even copying the example with Sprite2D and Timer fails. A bug?