Sponsors



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register Zunecentive FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 05-13-2008, 01:57 PM   #1 (permalink)
Support Team
Expert Zuner
 
soccerfreak24's Avatar
 
Join Date: Nov 2007
Posts: 2,890
Reputation: 178
$zB: 39
Donate
Default Changing a game to touch.

I know someone posted something about this before, but I couldn't find it. I was just wondering, is there a simple way to change a game to touch.. Basically, whre in the code do I go to change to touch, and what do I edit?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





soccerfreak24 is offline   Reply With Quote
Remove Advertisements Sponsored Links
Advertisement
 
Old 05-13-2008, 04:27 PM   #2 (permalink)
Zuner
 
Join Date: May 2008
Posts: 64
Reputation: 11
$zB: 26
Donate
Default

I actually think touch is easier to implement. The methods (I cant recall exactly what, but something like GamePad.GetState(Player.One).....YThumbstick & xthumbsitck) each return a number between -1 and 1 (-1 is completely down or left, 1 is all the way up or right). So lets say you move something based on the Y, and it happens to be a paddle. You would say something like;

paddle.Ypos += GamePad....Ythumstick * 5f, or some factor.

Sorry, im not on my PC so i cant give you exact code. If you have anymore questions feel free to ask. Also, the 3.0 came with a little bit of documentation about this under "Zune programming considerations".




amoo3 is offline   Reply With Quote
Old 05-14-2008, 09:15 AM   #3 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 114
Reputation: 22
$zB: 97
Donate
Default

Touch == Left Thumbstick

Click == DPad
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Register and remove this ad

All times are GMT -8. The time now is 06:52 AM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community