Help on navigation system for first person 2D game

Hi,

I know I have been posting a lot recently, and many of these questions are noob questions, so I really appreciate everyone’s patience with me as I learn. On to my question:

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.

I have been pulling my hair out the past 2 weeks trying to get this working, and I am starting to think that I may need to find another solution, or have a custom solution developed.

Thanks in advance for any help.

I can think of several ways to tackle this. It’s late, and I’m tired, so I’m not sure which is best.

One is to implement a custom Event Raycaster for each need in your scene: one to handle drag & drop of items, one for hot spots (whatever those are), and one for just panning around. Order these so that the highest-priority (smallest, probably) ones hit first. That should work, and keeps the code for each separate.

Or, more simply, you could just have one master input manager that knows about all those functions, and dispatches touches accordingly. First it checks for hotspots, then for inventory drag/drop, and finally for swipes on the background (or whatever order you feel is best). Once a handler is found it would remember which that is until the touch is released, so you don’t end up triggering a hotspot while dragging an item or whatever.

HTH,

  • Joe