Touch controls and a trick to detect input method

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • You don't even need a loading screen. You simply can have an event that fires only if you use touch screen then teliports your buttons to a specific spot.

    If it's going to change allot while developing, then have a base tile that you teliport your buttons to.

    Teliporting might be better if your buttons still work while invisible and disabled or what have we.

    Postion= devtile.

    Mybuttun.size = devtile.height/ width.

    In fact, it's good to do this, because like code, you don't want to have to go back and redo everything to make a small change, for every change.

    All my upgrades and doors can be moved and changed without having to jack with the code. Just point and click.