Unable to add HorizontalDragTetector to Player class in Flutter Flame
I have a Player class that has movement, I need to add gesture controls so a user can drag their finger left and right to move the player on the screen. From research I have done online it seems HorizontalDragDetector is what I need however I cant figure out how to bring that into my class. Any advice on how I can achieve this goal.
Unable to add HorizontalDragTetector to Player class in Flutter Flame
I have a Player class that has movement, I need to add gesture controls so a user can drag their finger left and right to move the player on the screen. From research I have done online it seems HorizontalDragDetector is what I need however I cant figure out how to bring that into my class. Any advice on how I can achieve this goal.