Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
so would I put somethin like this in my update ... ' seconds += (float)gameTime.ElapsedGameTime.TotalSeconds; if (seconds == 1) { CurrentHealth -= 1; } '
Thanks for the response, Ive already come across this, just looking for a simple tutorial, rather than a code example, that talks you through how to do it.
Thanks for the response! :) I half understand whats happening but having difficulty as to how to make it happen ... The above code, do I put that into the code where Im zooming out i.e. holding down the 'A' Key? Also how do I check if the camera position is within the playerBounds? Thanks!