Animated button for XNA Visual Studio

Affiliates: 0,14 $how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 0
Uploaded: 10.04.2012
Content: animatedbuttonxna.rar 4,5 kB

Seller

Артем005 information about the seller and his items
offlineAsk a question

Seller will give you a gift certificate in the amount of 5 RUB for a positive review of the product purchased.

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
No feedback yet.
Seller will give you a gift certificate in the amount of 5 RUB for a positive review of the product purchased..
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.market the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)