I'd like to have my circle cursor change to an "animated cursor" whenever the user clicks, then back to the circle cursor. I see how to change the cursor this with interactions on hotspots, but I'd like it to happen anywhere the user clicks on the scene. This is mainly because I'm making a touch-screen game and I'd like the user to know where they've tapped the screen.
Any suggestions on how to do this?
Comments
Does anyone have a working link to this script? The link in the post is no longer working unfortunately.
I want to play a short animation momentarily each time the player clicks anywhere on the screen and at the click location of the cursor. For example, a small ripple will appear when clicking on water or a puff of dust when clicking on ground.
Is there any way to achieve this with the AC engine or will I have to use a script like this? Thank you.
I'll paste the script below, but since the original post AC has a "Unity UI" option for cursor rendering at the top of the Cursor Manager.
With this option, the cursor is drawn using Unity UI components, which allow it to be controlled/modified through Animations that can be set to trigger when clicking.
See the Manual's "Unity UI Cursor rendering" chapter for more details.
AnimateOnTouch.cs:
Thanks Chris. I don't full understand it yet but I will see if I can work it out.