Godot Version: 4
Please note
So far, the answers have been off topic.
This probably has nothing to do with ScrollContainer
, which only work for Control nodes.
Question
Seems like a basic functionality, especially in many mobile games.
It needs to use InputEventScreenTouch
…
I want to be able to scroll everything inside the Map node by touch+dragging and flicking.
Flicking is essentially when you drag quickly and let go, and the thing keeps scrolling, with a gradually decreasing velocity, for a while.
Basically, the same functionality as a ScrollContainer, but in the game.
I was surprised to not find anything about this.
There is an open proposal for this functionality: Add smooth scrolling option to all scrollable controls · Issue #5386 · godotengine/godot-proposals · GitHub
There have been attempts to implement this (you will find them linked in the proposal), but it seems to be not trivial.
Thank you for your answer.
However… I’m asking about scrolling in the main game view, without any control nodes.
I solved it similar to this. But here’s the solution for those who are looking for the answer without reinventing such a fundamental functionality:
https://godotengine.org/asset-library/asset/2825
system
Closed
May 15, 2024, 7:24am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.