I suggest you ...

i can not control sprite by left, right, up, or down arrow key

i can not control sprite by left, right, up, or down arrow key

3 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    LongLong shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Mathew BakerMathew Baker commented  · 

        Hi Long,

        I'm assuming that you are using the 'gamepad' library to control your sprite. If not, check out this library:

        https://www.touchdevelop.com/app/#list:installed-scripts:script:9b018631-14b8-4315-5b03-79403300ecb3:overview:id=mlqea

        From what I understand...the library will check if your device has an accelerometer, and use it if it does. Otherwise, it will use assume you have a mouse and use that to control the sprite. If you have a touch pad, instead of an external mouse, you need to click and hold on the sprite with the left mouse button, while moving your finger on the touchpad. Really difficult to move.

        Using the gamepad library, you can set the keys by calling:

        gamepad -> settings -> set keys()

        Set a key for left, up, right, down.

        Happy coding.

      Feedback and Knowledge Base