Teil von  SELFPHP
  +++ SELFPHP CronJob-Service :: Jetzt auch als Professional-Version verfügbar! +++

:: Anbieterverzeichnis ::

Globale Branchen

Informieren Sie sich über ausgewählte Unternehmen im Anbieterverzeichnis von SELFPHP  

 

:: SELFPHP Forum ::

Fragen rund um die Themen PHP? In über 120.000 Beiträgen finden Sie sicher die passende Antwort!  

 

:: Newsletter ::

Abonnieren Sie hier den kostenlosen SELFPHP Newsletter!

Vorname: 
Name:
E-Mail:
 
 

:: Qozido ::

Die Bilderverwaltung mit Logbuch für Taucher und Schnorchler.   

 
 
Adding Audio Resources to a Silverlight Game


SELFPHP Produktempfehlung
Microsoft Windows Server 2008
Seite Windows Server 2008
Seite

Microsoft SQL Server 2008
Seite SQL Server 2008
Seite

Microsoft Expression Web 3
Seite Microsoft Expression
Seite


Adding the Sound of the Ball Hitting the Honeycombs

  1. Right-click the Beehive Silverlight project and choose Add Existing Item.
  2. Locate the block.mp3 file in the Audio folder and double-click to add it to the project.
  3. In the Objects and Timeline panel, select the first honeycomb in the list, then click the arrow to the left of the name to expose the Collision Behavior. Select the collision behavior. You will now link the sound file to the honeycomb in the same manner as the paddle.
  4. In the Collision properties section, click the Audio menu and scroll through the list until you locate block.mp3. Select this value. Now you will need to repeat this step for all of the remaining honeycombs. No shortcuts here, unfortunately!




  5. Select each honeycomb in order and expose the collision behavior. Set the value in the Collision Properties section to Block.mp3. Repeat these steps until each honeycomb has the same properties.
    Tip: If any of the honeycombs happens to be missing a behavior, you can reapply it by open the Assets panel, clicking on the Behaviors category and dragging the Collision behavior onto the honeycomb. Just be sure to select the Collide With All checkbox in addition to setting the Audio source.
  6. Test your application by pressing F5 and now each time the ball hits a honeycomb a sound is played.

Adding the Sound of the Ball Hitting the Game Walls

  1. Right-click on the Beehive Silverlight project and choose Add Existing Item.
  2. Locate the Wall.mp3 file in the Audio folder and double-click it to add it into the project.
  3. In the Objects and Timeline panel, select the Top_Wall object in the list, then click the arrow to the left of the name to expose the Collision Behavior. Select this collision behavior.
  4. In the Collision properties section, click the Audio menu and scroll through the list until you locate Wall.mp3.
  5. Repeat steps 3 and 4 but use the three other walls: Left Wall, Right Wall, and Bottom Wall.


Seite 2 von 2 1 2



Downloads

Copyright © 2010
Microsoft Deutschland GmbH
Alle Rechte vorbehalten.

 Microsoft Deutschland GmbH
 




:: Premium-Partner ::

Webhosting/Serverlösungen


Premium-Partner MECO Systemhaus GmbH & Co. KG
Premium-Partner PSW GROUP GmbH & Co. KG
Premium-Partner BPI-Systeme
Premium-Partner Pixel X
Premium-Partner
 

:: SELFPHP Sponsoren ::


DM Solutions
Microsoft Deutschland GmbH
twosteps.net - ...Premium-Webhosting
Sedo - Bei uns wird PHP großgeschrieben
hostfactory.ch - OptimaNet Schweiz AG
ZEND - The PHP Company
Kaspersky Labs
HighText iBusiness
SELFPHP Sponsoren
 

Qozido


© 2001-2013 E-Mail SELFPHP OHG, info@selfphp.deImpressumKontakt