Actor movement over the menu bar
Hello,
I have an issue with my game. I want to stop the main actor to move over an area when I click on it the area is the buttom one from the picture:
[IMG]http://i.imgur.com/tPHWl.png[/IMG]
The atributes of the actor are:
[IMG]http://i.imgur.com/IhGK5.png[/IMG]
Every time I click on the sound or on the pause menu the actor tries to move to that position this will cause a problem with the gameplay.
Can anyone help me out ?
Thanks,
Mojo
I have an issue with my game. I want to stop the main actor to move over an area when I click on it the area is the buttom one from the picture:
[IMG]http://i.imgur.com/tPHWl.png[/IMG]
The atributes of the actor are:
[IMG]http://i.imgur.com/IhGK5.png[/IMG]
Every time I click on the sound or on the pause menu the actor tries to move to that position this will cause a problem with the gameplay.
Can anyone help me out ?
Thanks,
Mojo
Best Answers
-
lukey5227 Posts: 111
If (Mouse Button is Down AND Game.Mouse_Position_Y > 50px)
Then: Interpolate to that position.
Explaining: If the mouse is down and is higher then 50 pixels on the screen, it'll move there. You don't have to have it set at 50 pixels, you can change this until you find it fits. Hope this helps!
EDIT: This also means that it won't move there based on the mouse. Any reason it can move there, the mouse can still get it out and it'll stay there, not jumping out.
Answers
Think of it like this, checkout tshirtbooth's vids here. Might give you ideas.
Thanks for your answer. I'm afraid this won't work since my actor will jump on screen when I press the mouse button to that location.
I need to have a fluid move on the screen. Also the actor will still jump on the bellow bar when I click on it.
Thank you,
Mojo
Cheers,
Mojo