[SOLVED] center object on screen with a controller?

0 favourites
  • 1 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • hi, in my app i control a square, with the xbox controller, i would like to achive this.

    that object is at the start of layout centered on screen, when i move the gamepad analog left joystick the square move to a direction, works same for all directions.

    my square sprite has 8 directions behaviour for that.

    i tried to center the object on screen when the left analog is not used, but i can't make it working.

    also i dont know how to make the sprite move to any direction, like diagonal corners from the gamepad analog

    can someone help with this problem, when the player release the analog joystick the sprite need to return to the center of the screen allways.

    thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)