Touch Control Camera Problem

harlin36harlin36 Member Posts: 101
edited November -1 in Working with GS (Mac)
Hi,
I am having trouble controlling my actor with 'outside touch' on a larger than normal scene (4096x4096) the game is set up as a giant maze and I need to be able to move freely around it.

I have posted a video to illustrate the movement of the actor, it works perfectly on the regular scene size but not on the large one.

I have also tried the camera offset actor but this only seems to work when the actor is constrained to the mouse position.

My actor does the opposite and accelerates away in the opposite direction from where you touch the screen.



Any help would be greatly appreciated!

Comments

  • harlin36harlin36 Member Posts: 101
    bump
  • harlin36harlin36 Member Posts: 101
    bump2
  • 3xL3xL Member Posts: 676
    hmm that IS strange. can you post your rules?

    also try reducing the size (for testing purposes) on that huge maze scene. and then run the game to see if the problem persist. reduce it to say, 3000 x 3000. i say this because on our first game we had issues with a huge room (similar size to yours) and the game just wasn't working. it was acting weird. Then when we reduced the size, it worked better. This was a year ago, mind you.

    but try that and if problems are dtill there, pots your rules for the character's movement.
  • harlin36harlin36 Member Posts: 101
    Hi 3xL,

    The actors movement rules are;

    (Actor receives event-touch-outside
    Attribute-game.touches.Touch1.X- < self.position.X+game.cam)

    (Accelerate
    Direction 0-relative to;actor -Acceleration 200)

    And this is repeated with the four directions.

    Also I tried it on a smaller scene on the video 480x640 but it didn't make any difference.

    The effect I'm after is like the game 'Float' except with a chicken instead of balloons!

    Cheers

    Steve
  • harlin36harlin36 Member Posts: 101
    bump
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    if it works with mouse position, just use mouse position. Its the same as touch on a device. There both interchangeable.
  • harlin36harlin36 Member Posts: 101
    Hello John,
    I like the way you can control the chicken with this technique and it takes some skill to master it.

    If it was just following the mouse/touch the game would be much less enjoyable!

    Is it not possible to make a game like 'Float' with a bigger scene? where the actor is propelled by touch rather than constrained to it?
  • harlin36harlin36 Member Posts: 101
    bump
  • harlin36harlin36 Member Posts: 101
    bump
  • harlin36harlin36 Member Posts: 101
    bump
  • harlin36harlin36 Member Posts: 101
    bump
  • harlin36harlin36 Member Posts: 101
    Hi Tshirtbooth,

    I tried your offset fix but it doesn't work with this movement as the actor is not constrained to the mouse position.

    Ta
  • harlin36harlin36 Member Posts: 101
    Screen shot 2011-11-03 at 10.42.23

    This is a how I am controlling the actor with another three directions, where am I supposed to put the +camx and +camy directions?

    You are using 'move to' which has expression editor and I am using accelerate which doesn't.
  • harlin36harlin36 Member Posts: 101
    The actors movement rules are;

    (Actor receives event-touch-outside
    Attribute-game.touches.Touch1.X- < self.position.X+game.cam)

    (Accelerate
    Direction 0-relative to;actor -Acceleration 200)

    And this is repeated with the four direction
Sign In or Register to comment.