An Issue With Touch, Need Help!

Hey guys, i have a game which is 1024 by 768 display size, but the scene is 2048 by 1536, now when i move around the scene with my char the camera follows which works fine, but when i touch somewhere outside of the 1024 by 768 range, it doesnt register my touch and the char wont move there, if i touch just within it my char can accelerate past the 1024 range but it still wont reconigze my touch outside of it. any ideas?

Comments

  • TaidakenTaidaken Member Posts: 271
    anyone?
  • ElfizmElfizm Member Posts: 489
    First thing that comes to mind is that your layers might not be scrollable. Not sure if that helps or anything.

    Otherwise maybe you don't have an actor in those areas to recognize the touch.

    It's hard to say without knowing a little more with what your game controls are ect
  • TaidakenTaidaken Member Posts: 271
    First thing that comes to mind is that your layers might not be scrollable. Not sure if that helps or anything.

    Otherwise maybe you don't have an actor in those areas to recognize the touch.

    It's hard to say without knowing a little more with what your game controls are ect
    yep the background is scrollable, its just a simple move to touch code,

    when touch is outside

    accelerate towards game.touches.touch1.x game.touches.touch1.y
    acceleration 100

    but any touches outside of the 1024 768 range and it wont accelerate towards it.
  • ericzingelerericzingeler Member Posts: 334
    When touch is outside what? Can you offer more info on that rule?
  • kanuvaskanuvas Member Posts: 21
    Can you share your project, and I can have a look? If you are not wanting to share it fully, maybe strip out the bits you do not want to share?
  • TaidakenTaidaken Member Posts: 271
    i figured it out guys, i found a vid done by tshirtbooth which pretty muched solved it.
Sign In or Register to comment.