Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionRegistryKey showing Object reference not set to an instance of an object Pin
Jassim Rahma9-Jan-15 10:06
Jassim Rahma9-Jan-15 10:06 
AnswerRe: RegistryKey showing Object reference not set to an instance of an object Pin
Jassim Rahma9-Jan-15 11:50
Jassim Rahma9-Jan-15 11:50 
QuestionPlay a video Pin
AlecJames9-Jan-15 8:50
AlecJames9-Jan-15 8:50 
QuestionHaving issues with a action looping Pin
Member 113620598-Jan-15 7:12
Member 113620598-Jan-15 7:12 
AnswerRe: Having issues with a action looping Pin
Pete O'Hanlon8-Jan-15 7:26
mvePete O'Hanlon8-Jan-15 7:26 
GeneralRe: Having issues with a action looping Pin
Member 113620598-Jan-15 7:48
Member 113620598-Jan-15 7:48 
GeneralRe: Having issues with a action looping Pin
Pete O'Hanlon8-Jan-15 9:11
mvePete O'Hanlon8-Jan-15 9:11 
GeneralRe: Having issues with a action looping Pin
Member 113620598-Jan-15 9:49
Member 113620598-Jan-15 9:49 
Thanks for the example. I'm starting to see what you mean by the "looping". To apply that to another ability, with the following example "Forward" PacMan will continue moving forward as long as the space in front of him is empty because the only check for success is that the space in "front" of him is empty, as determined by "LookForward"?

C#
case Ability.Forward:
    GameObject.Type objectTypeInDesiredPosition = LookForward();
    if (objectTypeInDesiredPosition == GameObject.Type.Empty)
    {
        SetPosition(GetFowardPosition());
    }
    break;

AnswerRe: Having issues with a action looping Pin
BillWoodruff8-Jan-15 8:37
professionalBillWoodruff8-Jan-15 8:37 
GeneralRe: Having issues with a action looping Pin
Member 113620598-Jan-15 9:50
Member 113620598-Jan-15 9:50 
QuestionConvert from Base 64 to hexadecimal value Pin
NJdotnetdev8-Jan-15 7:10
NJdotnetdev8-Jan-15 7:10 
AnswerRe: Convert from Base 64 to hexadecimal value Pin
SledgeHammer018-Jan-15 7:25
SledgeHammer018-Jan-15 7:25 
GeneralRe: Convert from Base 64 to hexadecimal value Pin
NJdotnetdev8-Jan-15 7:32
NJdotnetdev8-Jan-15 7:32 
AnswerRe: Convert from Base 64 to hexadecimal value Pin
PIEBALDconsult8-Jan-15 7:32
mvePIEBALDconsult8-Jan-15 7:32 
GeneralRe: Convert from Base 64 to hexadecimal value Pin
NJdotnetdev8-Jan-15 7:34
NJdotnetdev8-Jan-15 7:34 
GeneralRe: Convert from Base 64 to hexadecimal value Pin
PIEBALDconsult8-Jan-15 7:42
mvePIEBALDconsult8-Jan-15 7:42 
GeneralRe: Convert from Base 64 to hexadecimal value Pin
NJdotnetdev13-Jan-15 8:48
NJdotnetdev13-Jan-15 8:48 
Questionusing sData in C# to post sales Pin
Jassim Rahma7-Jan-15 20:33
Jassim Rahma7-Jan-15 20:33 
AnswerRe: using sData in C# to post sales Pin
Mycroft Holmes7-Jan-15 21:02
professionalMycroft Holmes7-Jan-15 21:02 
AnswerRe: using sData in C# to post sales Pin
Richard MacCutchan7-Jan-15 22:51
mveRichard MacCutchan7-Jan-15 22:51 
QuestionABOUT C# PROJECT Pin
bhulku Swati7-Jan-15 16:33
bhulku Swati7-Jan-15 16:33 
AnswerRe: ABOUT C# PROJECT Pin
BillWoodruff7-Jan-15 16:55
professionalBillWoodruff7-Jan-15 16:55 
AnswerRe: ABOUT C# PROJECT Pin
Pete O'Hanlon7-Jan-15 20:29
mvePete O'Hanlon7-Jan-15 20:29 
AnswerRe: ABOUT C# PROJECT Pin
Swinkaran8-Jan-15 10:12
professionalSwinkaran8-Jan-15 10:12 
QuestionWhy is happening this error: Object synchronization method was called from an unsynchronized block of code. ? Pin
FANMixco7-Jan-15 8:38
FANMixco7-Jan-15 8:38 

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.