User Tag List

Results 1 to 3 of 3

Thread: XNA Windows Phone Project - Touch Buttons?

  1. #1
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XNA Windows Phone Project - Touch Buttons?

    Hi guys,

    Sorry if this question feels a bit basic, but I'm having some trouble with using the XNA touch object.

    How do I configure 'touchable' buttons in my game? I've managed to make an object that you can drag with touch, but I can't seem to figure out how to make touches on objects work (like buttons in a menu, or replay/quit/continue after a level). For the drag-object I made, I created a behaviour for that object. Is that the key?

    A brief guide would be highly appreciated! Thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't need to create a behavior. Basically, if your game doesn't require multitouch input, you could just insert a new button object to the frame and add an event "button is clicked" --> some action like jump to frame.

  3. #3
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MJK View Post
    You don't need to create a behavior. Basically, if your game doesn't require multitouch input, you could just insert a new button object to the frame and add an event "button is clicked" --> some action like jump to frame.
    Thanks for your help! I never realized it was that straight-forward.

    Will get a Microsoft license within a week and try it out on my phone - in the meanwhile, thanks!

Similar Threads

  1. Touch Joystick Buttons
    By Techspec in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 4th July 2013, 09:08 PM
  2. Changing position of touch joystick buttons
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 7th April 2012, 11:38 AM
  3. Touch based platformer (no on-screen buttons) Has this been done before?
    By Pineapple in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 22nd February 2012, 08:56 AM
  4. Beta 6+: Touch Joystick + IPhone Buttons
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 7th December 2010, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •