XNA Advanced Techniques - Intro Screen Part 4
Uploader Comments (Whiplashx86)
All Comments (17)
-
@Whiplashx86 Thanx man you rock !!
-
@Deathowner666 Change the line to:
spriteBatch.Draw(pixel, new Rectangle(0,0, viewport.Width, viewport.Height), fadeColor * fadeOpacity);
-
@Whiplashx86 Thanx, that works, but now I have another problem with : "spriteBatch.Draw(pixel, new Rectangle(0,0, viewport.Width, viewport.Height), new Color(fadeColor, (byte)(fadeOpacity * 255)));" he sais again, color does not contain a constructor that takes 2 arguments. Do jou have any Idea with that?
That is the only error left. And again thanks for the help :)
-
@Deathowner666 Start the video from the beginning. I posted a note on the video explaining this. Hopefully I gave enough information for you to understand. YouTube would not let me write any more :P
-
@Deathowner666 You have to write Color.White * alpha.
Where alpha is a float value between 0 and 1.
-
@Whiplashx86 I don't understand about what you should do wen you use XNA 4.0. Just the step about tha alpha, In the program what are we suposed to do?
Do I still have to type new Color(Color.White)?
-
@Whiplashx86 I fixed it yesterday,but thanks anyway
I needed to add Microsoft.Xna.Framework.graphi
cs; and im using XNA 3.1
And ur tutorials rock mate.
hey, when i write
Fadecolor = color
i dont get the colors class...
kadnam222 10 months ago
@kadnam222 I am assuming you are using XNA 4? Color was moved to Microsoft.Xna.Framework, so add that using statement above.
Whiplashx86 10 months ago