#Scroll Container

14 messages · Page 1 of 1 (latest)

rocky dawn
#

Why cant i use scrolling in this ui?

#

Here another picture of the scene

charred coral
#

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

rocky dawn
#

the event is firing but the values are not added

charred coral
#

how do you know

rocky dawn
#

because the print statements:
print(scroll_vertical)
print(scroll_horizontal)

always return 0

charred coral
#

where are the print statements

rocky dawn
# charred coral 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)

charred coral
#

wow so every time you scroll it prints
0
0?

rocky dawn
#

yes always 0

rocky dawn
#

Or does it need to be in the VscrollContainer