View Single Post
 
Reply
Posted 2008-11-11, 12:50 AM in reply to idiotno69's post "Some rather complicated game parts"
Quick explanations:

Menu - Auto start event, use "Input Processing" or something along those lines to detect a keystroke and use a fork command to show a certain image. Really simple, just tedious.

Bars - Kinda tough math. Cross multiplication of fractions.
Code:
 N  x  X
100   10
N is the percentage left out of 100. X is the length of the bar used. For example, if the "hunger" bar meets half-way (%50) N becomes 50, multiply N by the 10 (cross multiply) then divide that number by 100 to equal 5, the length of the bar.

Another example, just for added confusion, if the "hunger" bar meets one third (%33) N becomes 33, multiply N by the 10 (cross multiply) then divide that number by 100 to equal 3.3, BUT, RM2K3 doesn't support decimals. Don't worry though, it automatically raises to the higher (if 5 or above) number. EG. 3.3 = 3, 4.6 = 5.

Savvy?
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