Added: 2 years ago
From: Whiplashx86
Views: 827
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

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

  • @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.

  • I just cannot get the fading to work in 4.0...

  • @AquadianEffect Somebody else had this problem and we were able to work it out and solve it on my forums. I will send you a message about the solution since Youtube hates my comments

  • When I write new Color(Color.White, ScreenAlpha) it says that Color can't take 2 arguments. What should I do to get around that?

  • @The3picNerd I am assuming you are using 4.0? Color is different from 3.x -> 4.0. Check the link in the description for more information.

  • @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)?

  • Comment removed

  • @Deathowner666 You have to write Color.White * alpha.

    Where alpha is a float value between 0 and 1.

  • @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 Change the line to:

    spriteBatch.Draw(pixel, new Rectangle(0,0, viewport.Width, viewport.Height), fadeColor * fadeOpacity);

  • @Whiplashx86 Thanx man you rock !!

  • @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

  • @The3picNerd Okay I cannot post the link, I will send you a message with it.

  • Very thorough tutorial, thankyou

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