Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes

 
Adon Engine
Reply
Posted 2005-04-05, 03:14 PM
This is the version 1.0.

I fixed the volume control to BlueCube specifications.

Any bugs or questions e-mail them to me at Wed_G2004

Version with and without RPG_RT.exe.

-------------------------------------
Disclaimer:

Neither Bladestar Productions or Zelaron.com take any credit or affiliation with this file.

This file has been scanned with Norton Anti-virus and no infection was found.

By downloading this file you take full responsibility for it.
-------------------------------------
Attached Files
File Type: zip Adon Engine v1.0.zip (38.2 KB, 4 views)
File Type: zip Adon Engine v1.0(RPG_RT).zip (493.2 KB, 3 views)

Last edited by Wed-G; 2005-04-07 at 09:11 AM.
Old
Profile PM WWW Search
Wed-G is an uncelestial body of massWed-G is an uncelestial body of massWed-G is an uncelestial body of mass
 
 
Wed-G
 



 
Reply
Posted 2005-04-05, 11:23 PM in reply to Wed-G's post "Adon Engine"
I'm going to post about the volume control because there's really not much else there to post about and I really like optimizing things:

The volume control (which is going to be a common event later I'll assume) is currently like this:

Code:
<Label 1>
Display sound settings / pick which to change

If it's BGM:
   Input  BGM Value
   if it's 1, set volume of BGMs to 10%
   if it's 2, set volume of BGMs to 20%
   if it's 3, set volume of BGMs to 30%
   if it's 4, set volume of BGMs to 40%
   if it's 5, set volume of BGMs to 50%
   if it's 6, set volume of BGMs to 60%
   if it's 7, set volume of BGMs to 70%
   if it's 8, set volume of BGMs to 80%
   if it's 9, set volume of BGMs to 90%
   if it's 10, set volume of BGMs to 100%
   if it's invalid, GOTO 1

If it's SFX:
   Input SFX value
   if it's 1, set volume of SFXs to 10%
   if it's 2, set volume of SFXs to 20%
   if it's 3, set volume of SFXs to 30%
   if it's 4, set volume of SFXs to 40%
   if it's 5, set volume of SFXs to 50%
   if it's 6, set volume of SFXs to 60%
   if it's 7, set volume of SFXs to 70%
   if it's 8, set volume of SFXs to 80%
   if it's 9, set volume of SFXs to 90%
   if it's 10, set volume of SFXs to 100%
   if it's invalid, GOTO 1
But you also have seperate routines that change the system SFX/BGM. Why not just call those from this event, once you get the proper variables? No need to repeat yourself. Also, the error check isn't complete - it needs to either reset the variable to its original setting, default it to some number, or force a recheck. This is mainly because I can put in 39 and it still shows up as 39 even though nothing is done with it.

Best way is to do this indirectly - don't change the volume variables until you know that it's a good input.

Also, there's no cancel ability. Though you can still hit ESC, it's good practice to include that if you can indeed cancel with no ill effects.

Code:
<Label 1>
Display sound settings / pick which to change

If it's BGM:
   Input tempNumber
   If tempNumber < 11 then
   {
      BGM value = tempNumber
      call SetBGMValues
   }
   else
   {
      Message "Invalid number"
      GOTO 1
   }

If it's SFX:
   Input tempNumber
   If tempNumber < 11 then
   {
      SFX value = tempNumber
      call SetSFXValues
   }
   else
   {
      Message "Invalid number"
      GOTO 1
   }

If it's CANCEL:
   <do nothing>
You can also just use a single digit number for sound levels - 1 would be 20%, 2 would be 30%, etc, all the way to 8 = 90% and 9 = 100%. That way there's no need for an error checking routine at all since you can't input more than 9 anyway. That would make it:

Code:
<Label 1>
Display sound settings / pick which to change

If it's BGM:
   Input BGM value
   call SetBGMValues

If it's SFX:
   Input SFX value
   call SetSFXValues

If it's CANCEL:
   <do nothing>
Which is optimal, in my opinion. Who's going to miss that 10%, anyway? If you set it at 10%, you're not really going to hear much. Besides, the common user doesn't (and shouldn't) know that 1 = 20% - from that standpoint, it's just the "lowest" that the program will go before muting it entirely. The only issue would be having to set the setBGMValues and setSFXValues routines to use only 0-9 which might take a bit of time. Still, it'll translate to less work overall since for every new custom sound effect/BGM you throw in there you'll only have to do 10 settings instead of 11.

--------------------------------------------------

Also, if you're still reading this by now, what is the point of map0003? Or is that just a practice throwaway map?
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2005-04-06, 10:53 AM in reply to BlueCube's post starting "I'm going to post about the volume..."
BlueCube said:
Also, if you're still reading this by now, what is the point of map0003? Or is that just a practice throwaway map?
Yeah, I kept it so I could use for other versions if I brought alot of the stuff back.

Due to the deadline I had to cut the CMS, CBS, HP HUD, MP HUD.

Thats why I left that map...
Old
Profile PM WWW Search
Wed-G is an uncelestial body of massWed-G is an uncelestial body of massWed-G is an uncelestial body of mass
 
 
Wed-G
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:11 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.