Help with my Five Night's A Freddy's clone!!!(camera)
Koridai011
Member Posts: 32
I try to use Constrain Attribute to move the actor and to follow the camera left and right,but the actor its not in the center of the mouse. what am i supposed to do?
Comments
Can you take a screenshot of your rules.
How do i do that?
.
CMD+Shift+4
I know that,but im trying to put the inmage on the commets but it wont.
Look, what im trying to say is that the actor (white cube) is not on the mouse cusor. whenever I move mouse it follows, but its not on the mouse cusor. does that make sense now?
Put it on a file sharing website like dropbox.
And I am still confused. How does your actor follow the mouse? What are your rules?
Upload the image to somewhere like TinyPic.com or imageshack.com (etc etc) . . . and post the link here.
my rules are:mouse position is outside
constrain attribute self.position.X To game.mouse.position.X
constrain attribute self.position.Y To game.mouse.position.Y
Im just gonna give you my rules:mouse position is outside
constrain attribute self.position.X To game.mouse.position.X
constrain attribute self.position.Y To game.mouse.position.Y
I just realize that the reason why the cube is not on the mouse cursor. its because the camera origin is not in position. now I don't know why it has to be on positionX 0 and positionY 0 in order to connect cube and mouse both each other. I want the camera to move left and right,so how?
They should work just fine, it would be good to be able to see your actual rules just to make sure there are no mistakes, so if you could upload a screenshot that would be good.
Please don't create multiple threads for the same issue.
/merged
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Okay I still have a problem with the camera. so here's a video
Allow me to explain, the rules are:
mouse position is inside
contrain attrilbute scene.camera.origin.x to game.mouse.position.x
and the behavior is in the background scene or something like that.
The lower lefthand side of an actor is the origin.
so what do i need to do? im a beginners luck
Origin + half the width of your scene = middle of the scene.
What does that mean!!! I'm sorry to bother you,but i still don't get it.
Never mind
hey, my game is finish now