"Tiles" won't place past the screen size of 560x320 even though the canvas is 1000x1000?

Peter_JPeter_J Member Posts: 17
Hi all,

So, I'm in the process of creating a city building game. The user clicks to spawn 32x32 size buildings(etc) to construct their city. My issue is that the tiles will not spawn past the "560x320" screen size even through the scrollable scene size is 1000x1000. How do I fix this?

Thanks!

-Peter

Comments

  • Peter_JPeter_J Member Posts: 17
    ..Bump (Hope that is not against the rules here)

    -Peter
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    You probably are spawning based on the mouse position? You'll probably need to add the camera origin offset.
    Mouse/Touch position is based on the position touched on the screen which always starts at 0,0 at the bottom left. That value doesn't change no matter where the camera is scrolled.
  • Peter_JPeter_J Member Posts: 17
    Awesome, Thanks!
Sign In or Register to comment.