520 reputation
49
bio website
location Canada
age
visits member for 3 years, 8 months
seen Jul 18 at 0:21

May
22
awarded  Nice Answer
Apr
15
comment animation runs only onces
I mean something like this: pastebin.com/nFekA7h0
Apr
15
comment animation runs only onces
@Sidar - "...but unable to figure it out what to put in if statment."
Apr
15
comment animation runs only onces
Yes you can... create loop in the class, ask for it in the constructor, set its value, and use it to test looping.
Apr
15
comment animation runs only onces
Unless I'm misunderstanding your question, the loop variable is what determines if it goes forever or not.
Apr
15
comment animation runs only onces
You'll have to set loop somewhere (perhaps in the constructor) to false or true.
Apr
14
answered animation runs only onces
Feb
14
awarded  Necromancer
Nov
25
awarded  Yearling
Nov
25
revised XNA Health Bar continually decreasing
added 10 characters in body
Nov
25
comment XNA Health Bar continually decreasing
1. gameTime.ElapsedGameTime.Milliseconds gives the elapsed game time since the last update. It will be reset to zero every frame automatically. 2. I agree with you on this; I considered it. However, I doubt it's 'normal' for a frame to take more than a few milliseconds to update, and so the timer will be off by only a maximum of those few milliseconds, not seconds. As a quick fix, just subtract 1000 as opposed to resetting to zero.
Nov
25
comment XNA Health Bar continually decreasing
You would have to keep track of the difference between TotalSeconds and the current seconds to determine if 1 second has passted. If you used ElapsedGameTime.Seconds, then it would probably never run because the update between each frame is most likely only a few milliseconds.
Nov
25
answered XNA Health Bar continually decreasing
Nov
25
comment XNA Health Bar continually decreasing
Set up a timer for 1 second in Update() and decrease the health every time it's called.
Nov
18
comment How can I solve this SAT direct corner intersection edge case?
Reversing the list worked for me too! Oddly, I only had to reverse the list each frame (so it flips back and forth) and didn't have to resolve collisions again, though my system is probably different than yours.
Nov
18
comment How can I solve this SAT direct corner intersection edge case?
Oh no, it wasn't meant as a jab towards you (I see where you misunderstood though). I meant, I had this exact same question and as I was going to ask it, I saw your question.
Nov
18
comment How can I solve this SAT direct corner intersection edge case?
I was working on a 2D collision system and ran into the exact same problem... good thing I looked at the questions before posting my own!
Apr
15
comment Dealing with 2D pixel shaders and SpriteBatches in XNA 4.0 component-object game engine?
No, and this is why many shaders and passes are horrible on performance.
Apr
4
comment Need to make animation whereby the character shatters into a bunch of pieces
Is this in real time or prerendered? Also, what tools?
Mar
27
comment Creating smooth lighting transitions using tiles in HTML5/JavaScript game
The final alternative seems like a good fit for HTML5 Canvas. Your other ones are not exposed to Canvas, unless ImpactJS specifically implements shaders and vertices, which I highly doubt.