Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need Help with C#coding Pin
Colin Angus Mackay15-Mar-08 14:15
Colin Angus Mackay15-Mar-08 14:15 
GeneralRe: Need Help with C#coding Pin
Paul Conrad15-Mar-08 14:48
professionalPaul Conrad15-Mar-08 14:48 
GeneralRe: Need Help with C#coding Pin
darkelv15-Mar-08 18:22
darkelv15-Mar-08 18:22 
GeneralRe: Need Help with C#coding Pin
Christian Graus16-Mar-08 11:11
protectorChristian Graus16-Mar-08 11:11 
GeneralOffscreen Screencapture Pin
User 226147415-Mar-08 12:20
User 226147415-Mar-08 12:20 
Generalkeyboard input Pin
sakirah15-Mar-08 9:54
sakirah15-Mar-08 9:54 
GeneralRe: keyboard input Pin
User 665815-Mar-08 10:07
User 665815-Mar-08 10:07 
GeneralRe: keyboard input Pin
MarkB77715-Mar-08 14:14
MarkB77715-Mar-08 14:14 
Hi,


Try this code:

<br />
float x = 0.5f;<br />
float y = 1.0f;<br />
<br />
if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Up))  <br />
{<br />
x += 0.1f;<br />
}<br />
<br />
if (Keyboard.GetState(PlayerIndex.One).IsKeyDown(Keys.Down))  <br />
{<br />
y += 0.1f;<br />
}<br />
<br />
effect.Parameters["xWaveLength"].SetValue(x);<br />
effect.Parameters["xWaveLength"].SetValue(y);<br />


Have a look at the Chase Camera example on the XNA creators club site. When I was beginning XNA I found that example to be very useful for learning the basics - primarily camera and model movement.


Mark.
GeneralRe: keyboard input Pin
sakirah15-Mar-08 14:38
sakirah15-Mar-08 14:38 
QuestionInstalling a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 7:18
Krazy Programmer15-Mar-08 7:18 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 7:26
parth.p15-Mar-08 7:26 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 7:31
Krazy Programmer15-Mar-08 7:31 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 7:38
parth.p15-Mar-08 7:38 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Not Active15-Mar-08 12:46
mentorNot Active15-Mar-08 12:46 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 15:24
parth.p15-Mar-08 15:24 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Not Active15-Mar-08 16:08
mentorNot Active15-Mar-08 16:08 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 20:19
Krazy Programmer15-Mar-08 20:19 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Not Active15-Mar-08 12:49
mentorNot Active15-Mar-08 12:49 
Questionusing my cursor in C# - help me Pin
inan_15-Mar-08 7:18
inan_15-Mar-08 7:18 
GeneralRe: using my cursor in C# - help me [modified] Pin
parth.p15-Mar-08 7:30
parth.p15-Mar-08 7:30 
GeneralRe: using my cursor in C# - help me Pin
inan_15-Mar-08 20:03
inan_15-Mar-08 20:03 
GeneralRe: using my cursor in C# - help me Pin
parth.p16-Mar-08 2:22
parth.p16-Mar-08 2:22 
GeneralRe: using my cursor in C# - help me Pin
inan_16-Mar-08 4:15
inan_16-Mar-08 4:15 
QuestionCan someone please Program the following ADT specification in C# help!!! Pin
ADTC#15-Mar-08 5:57
ADTC#15-Mar-08 5:57 
AnswerRe: Can someone please Program the following ADT specification in C# help!!! Pin
Kristian Sixhøj15-Mar-08 6:03
Kristian Sixhøj15-Mar-08 6:03 

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.