Drag problem... With large scene...

sebmacflysebmacfly Member Posts: 1,018
edited November -1 in Working with GS (Mac)
Hi!

I'm frustrated, because i can't drop an actor in y scene. (on iPad)
My X scene size = 3000

When i constrain my actor X position to the game.mouse.position.X, its based on 1024 and not 3000... So when i click on my actor and my camera is on X=2500, my actor disapear on position between 0 and 1024)

Any idea on that issue?

Hope that you understand me :)

Thanks
Cheers!

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    Ohhhh, i solved it....!

    If you need to correct an issue like that, here is the way :

    You have to constrain the actor position X to :
    game.Mouse.Position.X + scene.Camera.Origin.X

    Cheers!
  • perfectanswerperfectanswer PRO Posts: 121
    good to know ;)
Sign In or Register to comment.