How to make slide effects on actors to control main game actor
Hi all
I've just started to work on my next project and was wondering if anyone knew how to achieve the below effect I'm looking for.
I have a main actor in the centre of the screen, linked to a ROTATE LEFT & ROTATE RIGHT attributes. These are triggered by pressing two actors on the screen called 'Controller' (One on the left of the screen and one on the right)
Now, my idea is not to just have some boring buttons to rotate the main actor by pressing then but to get the buttons to slide up and down.
So, my idea for rotating the main actor right is to have either of the buttons slide it up the screen so it makes the main actor rotate anti clockwise and if they slide it down the main actor rotates clockwise.
So, this would use a hold down effect on the controller actors to slide the actors up and down the screen and have them stop when they hit the top of the screen of the bottom...actors sizes are height = 100 pixels and width = 30 pixels
If the actor slides the button to half way up the screen (160 pixels high) the rotation stops.
Does anyone know a good way of achieving this...
Many thanks in advance ![]()