Uridium Posted February 6, 2010 Share Posted February 6, 2010 Ok cant say ive seen this in a game yet but thought it might be fun to have. The attack system is boring to say the least so why not have background sounds when you hit someone or when they hit you. And a mailbox / events that makes a sound when you have received them or even just add background sounds to your game in general. Well ive been up all night making this addition and have finally made it happen. Dont worry about sounds getting on your Users nerves cos they can be turned on and off. either all sounds or just sounds selected by the user.. Attack Sounds as you can see above can be turned off. All files are done via SWF and only last a few seconds. You can add as many SWF files as you wish for example YOUHIT so users dont always get the same sounds.. *** UPDATE*** the use of SWF has been widened to any media format.. See post: Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted February 6, 2010 Share Posted February 6, 2010 This sounds pretty cool..And I've never seen anything like it anywhere, Good Idea illusions Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 6, 2010 Author Share Posted February 6, 2010 Bare with me all im still making the sound effects Fruity loops can sometimes a be a pain Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted February 6, 2010 Share Posted February 6, 2010 No rush man. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted February 6, 2010 Share Posted February 6, 2010 Great idea! Like Jordan said take your time, hope it's very good. Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 6, 2010 Author Share Posted February 6, 2010 Im just going to add one sound for each for now cos this is taking ages and once i get chance i'll add more sounds for attacking as i go along... will be about an hour before the scripts up. the easy Part... on your FTP create a folder called sndfiles and in that folder create three more attacking, atmospheric, mainpage in the newly created attacking folder create 4 new folders youhit, youfail, theyhit, theyfail, Dont forget to put a blank index.php or index.html file in each folder Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted February 6, 2010 Share Posted February 6, 2010 This looks good Illusions defo a modification ill be using. how much? Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted February 6, 2010 Share Posted February 6, 2010 *Checks Market* $10 I believe Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 6, 2010 Author Share Posted February 6, 2010 SQLS [mysql]CREATE TABLE IF NOT EXISTS `sounds` ( `soundid` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL default '0', `mainsnd` int(2) NOT NULL default '0', `youhitsnd` int(2) NOT NULL default '0', `youfailsnd` int(2) NOT NULL default '0', `theyhitsnd` int(2) NOT NULL default '0', `theyfailsnd` int(2) NOT NULL default '0', `mailboxsnd` int(2) NOT NULL default '0', `eventssnd` int(2) NOT NULL default '0', PRIMARY KEY (`soundid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; [/mysql] and two for the users table ALTER TABLE `users` ADD `mainsnd` TINYINT( 2 ) NOT NULL DEFAULT '0' ALTER TABLE `users` ADD `firsttime` TINYINT( 2 ) NOT NULL DEFAULT '0' now open up preferences.php and where the cases are add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and on the links section add this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now for the functions add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats it for the preferences.php file now open up header.php and underneath the very first mention of global add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And thats it for the header.php Now create a new file called mainpage.php and make sure WORDWRAP is OFF this is vital as the next part will call for one line at a time so if yours exceeds online and goes onto 2 then it will think the 2nd line is another track... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and then create a file called changetrack.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. PART 2 Below Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 6, 2010 Author Share Posted February 6, 2010 PART 2 create a file called off.php leave it blank and just send it to your FTP download the below file and place it inside your sndfiles/mainpage/ folder DOWNLOAD and thats IT if you want the attack mail and events script im afraid thats $10 and can be found here MARKETPLACE But you now have a taster of what to expect...... Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted February 6, 2010 Share Posted February 6, 2010 I'll have to get a copy of this then! Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 6, 2010 Author Share Posted February 6, 2010 minor edit in the header use this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
jds137 Posted February 6, 2010 Share Posted February 6, 2010 Once again the man, the myth, the legend surpasses himself. I think he needs three A+ 's for this, and alot of donations. lol Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 8, 2010 Author Share Posted February 8, 2010 For those who found the header music kept changing everytime a link was clicked ive now solved the problem. This however isnt a quick fix but it will allow people to continue view any pages whilst the music is still playing... Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 9, 2010 Author Share Posted February 9, 2010 Big thanks to JDS137 for letting me use his site for adding the newly updated script..... You can now test it out at http://www.mobslife.net When your signed in goto PREFERENCES click on SOUND ON You will see a bar at bottom of page which you need to click SOUND ON to activate the sound.... Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 9, 2010 Share Posted February 9, 2010 you use a different flash file for each sound or music, right? Why don't you use something like http://www.schillmania.com/content/projects/soundmanager2/ ? Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 9, 2010 Author Share Posted February 9, 2010 Morning Bert You dont have to use a flash file now.. as it has been redone and will accept any media type.. I started using SWF small files because of the problem with restarting when a link was clicked but now the problem has been resolved its able to play full lengh tracks without disturbing the players actions when clicking links.. Quote Link to comment Share on other sites More sharing options...
peterisgb Posted September 15, 2010 Share Posted September 15, 2010 thats download link don't work Quote Link to comment Share on other sites More sharing options...
MaddDogg49 Posted September 17, 2010 Share Posted September 17, 2010 Whats the lag for something like this... I can see small games being ok... but larger games being stress on the server Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted June 23, 2016 Share Posted June 23, 2016 Anybody know where to get the download from? Or if you can recreate the file for a fee. This should be an awesome mod. I'm guessing all that is missing is the audio file? But not knowing the details of the file makes it hard to search for a replacement. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.