Wrong Mouse Position in Web Preview/Arcade

brunocardosobrunocardoso Member Posts: 1
edited March 2012 in Working with GS (Mac)
So, when I use the Preview, everything works fine. I click on top of an Actor and that actor registers the click.

But when I use the Web Preview or export to the arcade for testing, the click is not registered exactly where the mouse button is, instead it's always registered about 200px down and 200px to the left.

It happens even with a single code test, like:

When touch is pressed, constrain attribute to device.mouse.position.X and Y.

Nothing more.

Any ideas?

Best Answers

  • brunocardosobrunocardoso Posts: 1
    Accepted Answer
    Just figured it out. Pretty stupid of me, btw.

    In case one finds himself in the same position, the problem was the scene size. It was set to 960x640 (iPhone 4 & 4S) resolution, while the GameSalad Arcade only supports 480x320.

    Hope it helps someone in the future.
  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    Just FYI even if you are developing for iphone 4/4s you need to have a screen size of 480x320.

    Just the art gets sized up to the retina size. not the entire scene size
Sign In or Register to comment.