ugokeru
This commit is contained in:
parent
1c893940ac
commit
cfcfd3e263
21 changed files with 227 additions and 7 deletions
|
@ -0,0 +1,6 @@
|
|||
function linear_approach(val, goal, amount) {
|
||||
if abs(val-goal) < amount val = goal;
|
||||
if val < goal return val+amount;
|
||||
if val > goal return val-amount;
|
||||
if val == goal return goal;
|
||||
}
|
12
eastern flames/scripts/linear_approach/linear_approach.yy
Normal file
12
eastern flames/scripts/linear_approach/linear_approach.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "data",
|
||||
"path": "folders/Scripts/util/data.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "linear_approach",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue