Need help in moving an actor the way i want it to move.
benjaminmage
Member Posts: 74
I want it to work like this. How do i do it?
ive got an actor in the middle of the screen known as white box. When the user taps the left side of the screen, the white box would move to the left side of the screen. Vice-versa for right. But when the white box is at the left side of the screen and the user taps the right side of the screen, the white box would move to the middle and when the user taps the right side of the screen again, the white box would move to the right side of the screen. vice versa for left.
I've attached some images to help you guys understand it better. Sorry if i seem rather bad at explaining things.
Comments
Here's one way to do it. (Made using the latest RC so you might have to rename the file.)
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline Awesome, thankyou! But how do i make it gradually move across and not teleport to the desired spot?
Will the actor need to collide with other actors?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline Yes it needs to. Thanks!
This is one way. How you do this though will depend on a lot of things, but this way is easy and fairly flexible.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support