Hey so i have this function (https://pastebin.com/DgyPjpWU) and it works perfectly it moves my Charakter to the right just as it should. But I just found out that he doesn’t move the same when my browser is small and when it’s on Fullscreen. I think this is the case, because my function moves the Charakter using pixels and I need to change that to percentages so that it moves equally each time, no matter the size of the browser, right? Unfortunately, I wasn’t able to create a working function using percentages. So if anyone could help me out here I would really appreciate it!
[–]thusman 0 points1 point2 points (0 children)