XNA Advanced Techniques - Intro Screen Part 4

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
839 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 15, 2009

In this tutorial, I continue to discuss the screen manager system and how to implement a logo/intro screen in a very abstract way for easy expansion. Very lengthy tutorial, but a lot was covered.

3.x to 4.0 color differences: http://phstudios.com/?q=node/156

Part four of five

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Whiplashx86)

  • hey, when i write

    Fadecolor = color

    i dont get the colors class...

  • @kadnam222 I am assuming you are using XNA 4? Color was moved to Microsoft.Xna.Framework, so add that using statement above.

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • @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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more