Factorising
The opposite of expanding. It basically factorises 2 numbers to make a(b+c) or - or / or * as the mathematical operators. Factorising can simplify numbers and expanding functions can un-simplify them (as most people would think)
Unforuantely unless more functions are added to GameMaker or if i upgrade this script, you have to figure out the lowest common divsion between the two numbers.
I will look into it :)
[code]
fig1 = argument0 // BIGGER NUMBER
fig2 = argument1 //SMALLER NUMBER
divison = argument2
new_fig1 = fig1 / division
new_fig2 = fig2 / division
[/code]
Unforuantely unless more functions are added to GameMaker or if i upgrade this script, you have to figure out the lowest common divsion between the two numbers.
I will look into it :)
[code]
fig1 = argument0 // BIGGER NUMBER
fig2 = argument1 //SMALLER NUMBER
divison = argument2
new_fig1 = fig1 / division
new_fig2 = fig2 / division
[/code]
Labels: Advanced

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home