confused. In master docs under custom signals comes the following:
var old_health = health
health -= amount
emitsignal("healthchanged", old_health, health)
yet under the section on scene instancing
signal shoot(bullet, direction, location)
var Bullet = preload("res://Bullet.tscn")
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?