Constrain Self.pos to Mouse.pos Help
expired_012
Member Posts: 1,802
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
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
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
Works like a charm, thanks for the help guys