It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How can we remove sprites from certain co-ordinates position on the screen on occurance of certain event in C#-XNA?
Typically you don't erase anything from the screen. Instead, for every frame, you render everything into a buffer and then render the finished buffer to the screen (to avoid flickering). When the next frame comes, it simply overwrites the previous content on the screen.
So, as said in the comment, you don't erase a sprite - you just don't render it in the next frame. How you achieve that depends on how you manage your Draw cycle.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a Second Degree Function, what will be the best way to draw a graph to it using Windows Form?
1) Set range of arguments (for example -20<x<20)
2) compute values for this points (with accuracy 0.5)
3) Scale your graph to display resolution
4) Connect points by lines
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I read this article: http://www.policyalmanac.org/games/aStarTutorial.htm, but i don't understand how is calculated G cost. I know those child's on corner of his parent have bigger score but there is probably another calculation to check distance from current to start node.
Please help.
In the article,
It was stated that G=10 if you move horizontal or vertical and
G=14 if you go diagonal from one square to another square.
Hence if you move horizontal from start square G = 0+10
where initially G is 0. Then you move vertical or horizontal from there implies G=10+10
and if diagonal means G=10+14
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is it possible to "auto" next step after X seconds in asp.net wizard? It has specified time for answering question.
One solution might be to use a client-side script to start a timer on page load and then to redirect the page after a set amount of time if no keypress or mousemovement is detected. Take a look at Javascript's setTimeout function for the timing part. And the answer to this question for the part that detects user activity.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a requirement to create an animated screen saver for windows.
Screen saver contains some images and some text.
I want to update the screensaver contents from a a webpage (upload images and edit texts) etc.
is possible to do this using c#?
"is possible to do this using c#?"
Yes.
C# is a full code language, and with it, you can do virtually everything a computer is able to do.
Now... I would expect you to expand your question a bit more.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Using c#, How can I identify infra red light (that my webcam would see). Will the necessary code differ depending on the make and model of my webcam?
A webcam can see a little IR and you can make it see more by removing the IR filter but it can only report it as... Red.
The whole chain of definition(s) of colour is aimed at the visual spectrum, only containing RGB values. You will see the IR as a 'false colour'.