Forager

Forager

Magnets!
DavisCatcher 22 Sep, 2023 @ 5:02am
2
How to fix Item drift
Hi i was testing some code and figured out the fix.
If anyone want to use this mod please find in mod folder file named OnStep.gml
Edit file in notepad like this:

edit this part of code
"
with (parResource) {
if (point_distance(objPlayer.x, objPlayer.y, x, y) < _distance) {
move_towards_point(objPlayer.x, objPlayer.y, _spd);
yy = y;
}
}
"
and put this

"
with (parResource) {
if (point_distance(objPlayer.x, objPlayer.y, x, y) < _distance) {
move_towards_point(objPlayer.x, objPlayer.y, _spd);
yy = y;
}else move_towards_point(target_x, target_y, 0);
}
"
and here is pastebin of whole file how it should look like
https://pastebin.com/VhRD1HXz
< >
Showing 1-1 of 1 comments
Kaito Kid 2 Apr, 2024 @ 6:50pm 
Huge thanks! you saved my game!
< >
Showing 1-1 of 1 comments
Per page: 1530 50