Help with my Five Night's A Freddy's clone!!!(camera)

Koridai011Koridai011 Member Posts: 32
edited February 2015 in Working with GS (Mac)

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

  • SocksSocks London, UK.Member Posts: 12,822

    @KoridaiGames said:
    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?

    Can you take a screenshot of your rules.

  • Koridai011Koridai011 Member Posts: 32
    edited February 2015

    @Socks said:Can you take a screenshot of your rules.>

    How do i do that?

  • Koridai011Koridai011 Member Posts: 32
    edited February 2015

    .

  • zweg25zweg25 Member Posts: 738

    CMD+Shift+4

  • Koridai011Koridai011 Member Posts: 32

    @zweg25 said:
    CMD+Shift+4

    I know that,but im trying to put the inmage on the commets but it wont.

  • Koridai011Koridai011 Member Posts: 32

    @zweg25 said:
    CMD+Shift+4

    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?

  • zweg25zweg25 Member Posts: 738

    @KoridaiGames said:
    I know that,but im trying to put the inmage on the commets but it won't.

    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?

  • SocksSocks London, UK.Member Posts: 12,822

    @KoridaiGames said:
    I know that,but im trying to put the inmage on the commets but it wont.

    Upload the image to somewhere like TinyPic.com or imageshack.com (etc etc) . . . and post the link here.

  • Koridai011Koridai011 Member Posts: 32

    @zweg25 said:
    And I am still confused. How does your actor follow the mouse? What are your rules?

    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

  • Koridai011Koridai011 Member Posts: 32

    @Socks said:
    Upload the image to somewhere like TinyPic.com or imageshack.com (etc etc) . . . and post the link here.

    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

  • Koridai011Koridai011 Member Posts: 32
    edited February 2015

    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?

  • SocksSocks London, UK.Member Posts: 12,822

    @KoridaiGames said:
    Im just gonna give you my rules

    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.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Please don't create multiple threads for the same issue.

    /merged

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Koridai011Koridai011 Member Posts: 32
    edited February 2015

    @tatiang said:
    Please don't create multiple threads for the same issue.

    /merged

    Okay I still have a problem with the camera. so here's a video

  • Koridai011Koridai011 Member Posts: 32

    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.

  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2015

    @KoridaiGames said:
    Allow me to explain, the rules are:
    mouse position is inside
    contrain attrilbute scene.camera.origin.x to game.mouse.position.x

    The lower lefthand side of an actor is the origin.

  • Koridai011Koridai011 Member Posts: 32

    @Socks said:

    so what do i need to do? im a beginners luck

  • SocksSocks London, UK.Member Posts: 12,822

    @KoridaiGames said:
    so what do i need to do? im a beginners luck

    Origin + half the width of your scene = middle of the scene.

  • Koridai011Koridai011 Member Posts: 32

    @Socks said:
    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.

  • Koridai011Koridai011 Member Posts: 32

    Never mind

  • Koridai011Koridai011 Member Posts: 32

    @Socks said:

    hey, my game is finish now

Sign In or Register to comment.