Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,104 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,690 people online right now. Registration is fast and FREE... Join Now!




Moving a sprite

 
Reply to this topicStart new topic

Moving a sprite

itpro4470
17 Nov, 2007 - 10:42 AM
Post #1

D.I.C Head
Group Icon

Joined: 17 Jun, 2007
Posts: 120



Thanked: 1 times
Dream Kudos: 25
My Contributions
I have so far coded a man that is controlled by the user it can spin and move foreward but I can't get it to spin while running. I dont have the code with me as I am at work right now but I will post later if needed. Basically I am looking for a way to process 2 keypress events at the same time.
User is online!Profile CardPM
+Quote Post

awesty
RE: Moving A Sprite
17 Nov, 2007 - 07:11 PM
Post #2

D.I.C Head
Group Icon

Joined: 27 Oct, 2007
Posts: 76


Dream Kudos: 25
My Contributions
Are you using XNA or MDX?
User is offlineProfile CardPM
+Quote Post

mocker
RE: Moving A Sprite
17 Nov, 2007 - 10:43 PM
Post #3

D.I.C Regular
Group Icon

Joined: 14 Oct, 2007
Posts: 258



Thanked: 15 times
Dream Kudos: 25
My Contributions
How do you check for current keypresses? A method I like is to have an array of booleans, then when you get a keydown event do something like keys[keypressed] = true , and set it false on keyup . Then you can check for whatever combination of keypresses you want.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 09:06PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month