Old 10-18-2009, 03:28 PM   #1 (permalink)
Squirt
 
Join Date: Oct 2008
Posts: 26
Fallenarms3 is on a distinguished road
Default Need help with a few (simple?) things.

Right, so I'm new to C#, and coding in general (I have some experience in Pascal, of all things). I'm trying to make an app which I believe will be pretty simple to do. I have figured out on my own how to draw sprites to positions on the screen (though very inefficiently, but whatever).

What I need to know:

How to make "button" objects which react to touch, and can be pressed at the same time as multiple other buttons. Alternately: track the touch-state of the screen in certain bounding boxes, pretty much mimicking buttons.

How to tell the program to play a sound when certain buttons are pressed, and not stop that sound when other sounds are played.

And really, that's about it. No collision detection, shading, or anything like that. It seems simple enough to me, so I'm hoping maybe someone can help me out.

Last edited by Fallenarms3; 10-18-2009 at 03:31 PM.



Fallenarms3 is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 10-18-2009, 03:32 PM   #2 (permalink)
Member
 
BroiledVictory's Avatar
 
Join Date: Dec 2008
Location: Puyallup, Washington State
Posts: 526
BroiledVictory will become famous soon enough
Send a message via Skype™ to BroiledVictory
Awards Showcase
Biggest Shouter 
Total Awards: 1
Default

http://www.zuneboards.com/forums/ope...ician-4-a.html
That should help with the button & sound logic.
I can
t really help with the touch screen stuff since I don't know the zHD.
__________________
Formally SmileDog.
Note: I prefer to have conversations over Skype, not over PM.
You will be bottom priority if I happen to be talking to a friend/relative.

thx Jorvette!




BroiledVictory is offline   Reply With Quote
Old 10-18-2009, 04:42 PM   #3 (permalink)
Squirt
 
Join Date: Oct 2008
Posts: 26
Fallenarms3 is on a distinguished road
Default

Quote:
Originally Posted by BroiledVictory View Post
http://www.zuneboards.com/forums/ope...ician-4-a.html
That should help with the button & sound logic.
I can
t really help with the touch screen stuff since I don't know the zHD.
That looks like it would help a lot, but your download link is dead.



Fallenarms3 is offline   Reply With Quote
Old 10-20-2009, 09:13 PM   #4 (permalink)
Zuner
 
Cobalthex's Avatar
 
Join Date: Sep 2009
Posts: 98
Cobalthex is on a distinguished road
Default

touch stuff is relativly easy, look in the docs for TouchCollection and TouchLocation



Cobalthex is offline   Reply With Quote
Reply

Bookmarks

Thread Tools