I am making a Disc Battle/Air Hockey game, using Touch to drag the the Bat and hit the Puk.
Touch has been set to use Mouse Input.
But I am having trouble setting a Boundary as the Bat may not move over to the opponent side.
The opponent Bat/CPU works with Lerp and a Hotspot over the CPU half and set to:
Puck | Is overlapping AI_Movement | Bat_AI | Set Y to lerp(Bat_AI.Y,Puk.Y,0.10
AI_Movement being the hotspot covering the CPU side of the game.
but I can't figure out for the player.
Any advice?