Hi,
I was hoping I could get some help on what would be the best way to implement a touch screen navigation system for our first person perspective 2D game. Basically a point and click adventure. I was hoping to swipe to move to new sprite backgrounds. I didn't know if and how AC implemented that, and also how to integrate hotspots into it, dragging items, etc. I have been trying to implement a touch screen gesture addon for unity, and a camera transitions addon, but I am having a lot of trouble with it, and it doesn't even allow me to select and drag items, and swiping over a hotspot executes the hotspot instead of the swipe. I know I am asking a lot, but is there any advice, or a direction to start towards? I am a bit confused as to how to go about this, since it really isn't a very common navigation system.
Thanks in advance for any help.
Comments
For example, a swipe-right could invoke an ActionList that uses a Camera: Switch Action to pan the camera right (causing a "swipe effect" if the two scenes were beside each other in the Scene view). Any ActionList can be run through script by invoking its Interact() function.
The triggering of Hotspots can be disabled at any time by disabling the Interaction system. This can be done either with the Engine: Manage systems Action, or through code:
KickStarter.stateHandler.SetInteractionSystem (false);
If Hotspots are triggering mid-swipe, you'd have to adapt the swipe code to temporarily disable the Interaction system for its duration.
For custom camera transitions, you'll need to disable AC's MainCamera for its duration - see Section 4.6 of the Manual.
If by "drag items" you mean inventory items, drag-and-drop inventory can be enabled from the Settings Manager.