Hi Chris and fellow AC'ers
Been having a blast setting up an Interactive activity center based on the Puzzle Piece Package.
I'm using the gamecamera2ddrag as my camera so the world can be explored.
I have been trying to get to the following:
When dragging the puzzle piece to the very edge of the screen and keeping it for a little moment, the screen will scroll in the direction of the puzzle piece and stop when the piece is moved away from the edge.
How can I achieve this?
Any direction would be much appreciated,
Best, Dan
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
That's a different behaviour to GameCamera2DDrag - which works by dragging the cursor independent of its starting position and without a timer.
For this behaviour, you'd need a custom script attached to an AC "Basic Camera" component so that it can still be switched to via the Scene Manager and Actions.
See the Manual's "Custom cameras" chapter for details, but something along these lines may do it:
I got it to work and now have a screen scrolling whenever the pieces reaches the edges, still respecting the bouncing box and the drag cam.
Thanks a bunch Chris. Never cease to amaze me how you put into this.
Been with AC on/off since 2017 and I always find so much joy in playing around with it.
Thanks!