TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Piyush chhabra
NA
83
16.9k
Attaching Sound File In Game
Jun 18 2014 1:28 AM
Hello Everyone..
i have made a brick breaker game in which bricks are destroyed using a ball.
i have also gave a sound on brick breaking.
here is my code
private void sound1()
{
SoundPlayer player=new SoundPlayer();
player.SoundLocation = @"C:\Users\Piyush\Documents\Visual Studio 2008\Projects\BrixGame\BrixGame\Resources\beep3.wav";
player.Play();
}
I have called this Sound1 Function When I need to play sound.
Everything is working correctly. But When i make setup of my Game.Sound Comes Only Till when the file beep3.wav is at the location.
so when i transfer game's setup into other computer. it does not give the sound because the file is not at that location in other computers.
so how can i remove this error..
PLEASE HELP... Thanx In advance....!!
Reply
Answers (
0
)
Select n row of datatable by loop
Creating folders and sub-folders in IIS 7 wwwroot using C#