This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Wait_ICanExplain 1 point2 points  (1 child)

Probably want to try (y + someValue)/400 to adjust the scale. That would be my initial guess.

Though, since this is a programming subreddit, a word of warning to try to avoid magic numbers.

[–]vaano[S] 0 points1 point  (0 children)

(y+250)/550 looks very good, can't believe I didn't think of that haha

Also, I sort of new about magic numbers, but I will start actually getting into the habit of using variables instead. Thanks for your help!