#Scroll Container
14 messages · Page 1 of 1 (latest)
do you have anything to scroll
also are you sure the event is firing
i.e. can you add print statements in your event firing
the event is firing but the values are not added
how do you know
because the print statements:
print(scroll_vertical)
print(scroll_horizontal)
always return 0
where are the print statements
under the value changes :
func _input(event):
if event.is_action_pressed("Kamera_rauszoom"):
scroll_vertical += 10
scroll_horizontal +=10
print(scroll_vertical)
print(scroll_horizontal)
elif event.is_action_pressed("Kamera_reinzoom"):
scroll_vertical -= 10
scroll_horizontal -=10
print(scroll_vertical)
print(scroll_horizontal)
wow so every time you scroll it prints
0
0?
yes always 0
the scipt belongs into the scroll container right?
Or does it need to be in the VscrollContainer