Hello,
I’m new a Godot and I’m trying to implement a zoom in and out function.
I have tried many tutorials, all not working and for my last try, I have the following:
A Node2D with a Camera2D with the following script:
extends Camera2D
var ZoomSpeed = Vector2(0.1,0.1)
func _ready() -> void:
print("Camera script is running")
pass
func _input(event):
print("DED")
if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
print("Left button was clicked at ", event.position)
if event.button_index == MOUSE_BUTTON_WHEEL_UP and event.pressed:
print("Wheel up")
The Camera scripti is running is displayed, but nothing is displayed from _input. What do i miss?