GijsTempel / care-up

CareUp Game
0 stars 1 forks source link

Adding finger/tapgestures for de-combining objects - Swipe up/down #1081

Closed GijsTempel closed 5 years ago

GijsTempel commented 5 years ago

Adding swipe up/down for de-combining objects. When player has two objects in hands to combine. If the player then swipes up/down de-Combine action should be called.

If I am not mistaken, the tapgestures also work with the mouse. See documentation below. Also there are a lot of demoscenes and code in the ' Fingers' folder.

Demoscene: DemoSceneSwipe

https://app.zenhub.com/files/70799427/708043cb-5dae-4527-90e4-bc63c700d58e/download

Hunter13ua commented 5 years ago

Swiping vertically will try to de-combine items in hands. If there's empty hands OR both hands have items - it will create a tablet message - warning, explaining that player cannot de-combine nothing or cannot de-combine an item while having second hand busy.

GestureControls.cs:94-96 is where you can modify this message.