Constrain Self.pos to Mouse.pos Help

expired_012expired_012 Member Posts: 1,802
edited November -1 in Working with GS (Mac)
Ok...something really strange is happening to me

Im using a very simple rule

when touch is pressed, constrain self.pos.x to mouse.X, and same for Y.

This works when I do it on a 480x320 screen alone, but my screen is now 3000 in width since im implementing a ton of scenes all in one, and when I use this exact rule in that scene, I click the actor and it just disappears. What could be the problem? Too large of a scene to use this?


Sorry about the horrible quality, had to throw something together really quickly.

Any kind of help is welcomed, thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    First try constraining to touch 1 instead of mouse. Let me know what happenes
  • expired_012expired_012 Member Posts: 1,802
    Already tried that, same exact thing happens
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Take the y out so your only constraining the x
  • expired_012expired_012 Member Posts: 1,802
    If I take out the y, same happens as before.
    If I take out the x and keep the y, I am actually able to move it along the y axis. I knew this had something to do with the x axis because the width of the scene is probably what is affecting this
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Try using either change attribute or interpolate now and see what happens
  • expired_012expired_012 Member Posts: 1,802
    Thanks tshirt! That should do it, will try in a bit :)
  • expired_012expired_012 Member Posts: 1,802
    Finally I was able to try it out

    Works like a charm, thanks for the help guys
Sign In or Register to comment.