Tag Info

Hot answers tagged

1

Notice that you are launching a sound effect while the player is dead, not when the player died. The obvious solution would be to call your soundEffect.Play here: if (vehicles[count].bbox.Intersects(playerSprites[lives].bbox)){ playerSprites[lives].isDead = true; deathSound.Play(); //and also disable further intersection tests with player bbox to ...


1

So , as already was sad there are no pixels in 3D spcae at all. There are usints that dont have any relations with 2D pixels. Pixel are also units, but they have fixed size couse screen have have fixed resolution. For example if your monitor is 12 inches in width and 9 inches in height and resolutins is set to 800x600 one pixel will have real size ...



Only top voted, non community-wiki answers of a minimum length are eligible