- Cell Phones 1585
- Desktop 761
- Editors 426
- Education, Science & Engineering 1093
- Games 2264
- Internet 4693
- Multimedia & Graphics 977
- Office software 755
- PC 469
- Programming 1874
- 1C 145
- ActiveX 3
- Assembler 30
- C# 85
- C/С++ 281
- Data Bases 402
- Delphi/Pascal 494
- Disassemblers 6
- OpenGL/DirectX 5
- PHP 155
- Setup Software 22
- Visual Basic 25
- Others 221
- Security 943
- SEO 306
- Software for Pocket PC 187
- Utilities 3855
Animated button for XNA Visual Studio
Uploaded: 10.04.2012
Content: animatedbuttonxna.rar 4,5 kB
Seller

Seller will give you a gift certificate in the amount of
Product description
Animated button for XNA Visual Studio.
The archive includes a class AnimatedButton.cs declared inside the class AnimatedButton.
Announce it in the program must be so -
btnTurn = new AnimatedButton (this, TurnButtonAnimation, new Rectangle (600, 400, 200, 200)),
where this - is the current game project
TurnButtonAnimation - an array of image animation type Texture2D
Usually hundred png image format offers a very nice effect, and smooth animation is not particularly
zagruzhaeya much CPU. Animation I usually do in 3dMax, put in the output settings in png format
and render all frames of the current scene. Then in the output folder is created 100-200 image format png,
I have inserted into the Visual Studio.
new Rectangle (600, 400, 200, 200)) - an area on the screen occupied by the button. Hence it is clear that it takes
square with the coordinates of the upper left corner (600.400) - 600 of 400 for the X and Y Length 200.
The animated buttons there is only one event - click on the button.
Just click on the button with the mouse is played - File BUTTON1.wav team Sound.Play (SoundList.Button);
Functionality sound playback to be in Sound.cs
That is, you need to file BUTTON1.wav placed in a folder in the Audio section of the game content.
An example of a button you can see in this video of my goods
at the very end of the video button "next move"
Additional information
If you want to add a button any more functionality write to the post, discuss the details.
Feedback
0