YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Feather: add a warning for accidentally using lengthdir_x twice in a row instead of lengthdir_x and then lengthdir_y #5650

Open KormexGit opened 6 months ago

KormexGit commented 6 months ago

Is your feature request related to a problem?

I have lost an embarrassing amount of time to this mistake:

moveX = lengthdir_x(spd, dir);
moveY = lengthdir_x(spd, dir);

Describe the solution you'd like

Have feather save me from myself by giving some sort of warning if it detects that I've used lengthdir_x where I should have used lengthdir_y.

A warning for stuff like this could also be nice:

x = oPlayer.x;
y = oPlayer.x;

It should NOT give a warning for adding two lengthdir together though, so it shouldn't just check for lengthdir_x appearing twice in a row

moveX = lengthdir_x(spd, dir) + lengthdir_x(knockbackSpd, knockbackDir); //all good, no warning here

Describe alternatives you've considered

No response

Additional context

No response

backYard321 commented 6 months ago

AMAZING feature idea - this has tripped me up too many times as well as a lot of other people.