Working on an iOS game right now using swift, and am having trouble trying to get the effect i want.
Basically, i have a Dpad for moving around, it's simply one sprite node that displays the image and then some transparent rectangles overtop to trigger the actions.
I want the dpad to tilt downwards slightly in the direction the user taps and holds, to simulate feedback like on a real life direction pad. And by downwards, i mean some kind of 3d flip effect, but only applied slightly. Does that make sense? Is that possible with any kind of actions on an SKSpriteNode
?
I've tried using SKAction.scaleX
since when you set it to -1 it fully flips the node, but does an actual scale when it's not -1.
Any tips or advice is greatly appriciated!