I am using the multitouch joystick feature but I’m wondering if there’s a way to change the sprite image when the up, down, left or right buttons simulated.
I’d like to change the sprite image to appear as if were pressed down and have 4 separate images for each corresponding button.
I was thinking maybe I could add a sprite image and change to a different frame but I don’t see any option for that.
I don’t see a way and IDK if there’s another control.
The control is a custom or prefab object. It appears to be modifiable although it might be difficult and if you reinstalled or updated the object, you would probably lose your changes. IDK if you can rename things so it would be considered a different object allowing the original and a modified version in the same scene. That might prevent a conflict.
Another option would be to either create your own gamepad or hide the current gamepad and place your own sprites directly over the buttons. Your sprites would be purely for the visual. The gamepad control would handle the interactions.
I think that would be a viable option for me, however currently I have made it a draggable object as I want to allow the player to move the joystick out of the way if need be.
What would be the best way to translate the fake dpad sprite to the current joysticks position if it were to be repositioned by the player?
I once had same idea as you
I did it more or less by what Keith and MrMen suggested
I made one additional sprite
Placed it on joystick with change position action
And depending on what was pressed i changed animation of that fake object to match what was pressed
So that fake object was holding all possible combos of animations to what was pressed
And you know what i realized? It was dumb
Too much effort for what is it worth
You cover that image with your finger
And i ended up ditching the idea and just going with changing opacity of joystick if its pressed or not
To indicate any kind of interaction instead of giving it per exact interaction animation
Consider that
I know it is tempting to have it show what exactly is pressed
But trust me its stupid
Opacity change or even tinting is all you need
Yeah I kind of agree with you at this point. I tried out using a fake object and it caused some issues not following the object properly sometimes. I actually already had the opacity effect you were speaking of in place so I’ll guess I’ll stick with that.
That said I still think it would be a nice feature in future versions of the Joystick prefab to be able to change animations. Just a thought.