Click here to Skip to main content
16,012,166 members
Home / Discussions / C#
   

C#

 
QuestionXInput [modified] Pin
MasterSharp11-Nov-07 9:44
MasterSharp11-Nov-07 9:44 
AnswerRe: XInput Pin
Pete O'Hanlon11-Nov-07 10:07
mvePete O'Hanlon11-Nov-07 10:07 
GeneralRe: XInput Pin
MasterSharp11-Nov-07 10:32
MasterSharp11-Nov-07 10:32 
GeneralRe: XInput Pin
Luc Pattyn11-Nov-07 10:36
sitebuilderLuc Pattyn11-Nov-07 10:36 
GeneralRe: XInput Pin
MasterSharp11-Nov-07 10:40
MasterSharp11-Nov-07 10:40 
GeneralRe: XInput Pin
Pete O'Hanlon11-Nov-07 22:29
mvePete O'Hanlon11-Nov-07 22:29 
GeneralRe: XInput Pin
Pete O'Hanlon11-Nov-07 22:20
mvePete O'Hanlon11-Nov-07 22:20 
Question2 Keys Pin
MasterSharp11-Nov-07 8:07
MasterSharp11-Nov-07 8:07 
Since we all know (well, most of you) that I'm trying to construct a game, there's a couple more things I would like to know.
A) How do I use more than one key at a time. I have a player moving, and then jumping, but then he stops moving to the side once you press the jump button. This code looks somewhat like below.
protected override ProcessCmdKey(stuff)<br />
{<br />
switch (keydata)<br />
{<br />
case Keys.Space: <br />
     Jump();<br />
case Keys.Right:<br />
     Move_Right();<br />
}<br />
}

B) How to rotate Recangle rect. Say rect is hooked up to a timer though.

Also, if anyone could provide some articles on game physics, I'd like that. Or just to explain it a little. No code necessary, but I just want to have an idea on it. My thought was that developers set up points with algorithms to have a point stay to a certain part of, say a cube, and assign weight and rotation so it just goes by the points. Confusig, duh. That's why I want to know. Thaks SO MUCH in advance.

P.S. I should be just about done with stupid questions!

- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"

AnswerRe: 2 Keys Pin
Luc Pattyn11-Nov-07 9:34
sitebuilderLuc Pattyn11-Nov-07 9:34 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:49
MasterSharp11-Nov-07 9:49 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:51
MasterSharp11-Nov-07 9:51 
GeneralRe: 2 Keys Pin
Luc Pattyn11-Nov-07 9:56
sitebuilderLuc Pattyn11-Nov-07 9:56 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 9:59
MasterSharp11-Nov-07 9:59 
GeneralRe: 2 Keys Pin
Luc Pattyn11-Nov-07 10:32
sitebuilderLuc Pattyn11-Nov-07 10:32 
AnswerRe: 2 Keys Pin
Christian Graus11-Nov-07 10:14
protectorChristian Graus11-Nov-07 10:14 
AnswerRe: 2 Keys Pin
Anthony Mushrow11-Nov-07 10:30
professionalAnthony Mushrow11-Nov-07 10:30 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 10:34
MasterSharp11-Nov-07 10:34 
GeneralRe: 2 Keys Pin
MasterSharp11-Nov-07 11:09
MasterSharp11-Nov-07 11:09 
Questionstatic constructors & late binding with reflection Pin
gilaz1111-Nov-07 6:05
gilaz1111-Nov-07 6:05 
AnswerRe: static constructors & late binding with reflection Pin
Justin Perez11-Nov-07 7:07
Justin Perez11-Nov-07 7:07 
QuestionCall function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 3:57
I'm a beginner11-Nov-07 3:57 
AnswerRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:06
mentorGiorgi Dalakishvili11-Nov-07 4:06 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:15
I'm a beginner11-Nov-07 4:15 
GeneralRe: Call function of Form1 from Form2? Pin
Giorgi Dalakishvili11-Nov-07 4:24
mentorGiorgi Dalakishvili11-Nov-07 4:24 
GeneralRe: Call function of Form1 from Form2? Pin
I'm a beginner11-Nov-07 4:32
I'm a beginner11-Nov-07 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.