![]() |
Onwall-Check
PHP Code:
I dont want you to rescript this or anything like that. Please tell me what wrong is :D Thanks. |
So why don't you tell us what you're trying to do.
|
I am trying to change the speed of the player and scripting my own onwall check? lol.
|
Quote:
|
If you really want to help me you'll first read the script once.
And if you read the script once and your IQ is over 40 you'll understand it. |
Quote:
And I don't "really" want to help you, however I don't mind helping if you explain some of the calculations. |
Why are you using abs() on some of your vectors?
|
Quote:
|
Yeah, but using if (player.dir in |0,2| ? k : 0) would give you the variable k if you are facing down, left and up..
As |0,2| doesn't mean 0 or 2, it means 0, 2 and anything between. And do you know what vectors are? And how they work? And could you tell me why you are using 17/16 in your onwall calculations? Because.. 17 divided by 16 is 1.0625 and in the long go it will eventually jump over a few tiles to check.. |
Quote:
|
Quote:
|
Quote:
He's trying to do either a custom movement or some addition to the default one (running or so). Cant remember. |
Quote:
Quote:
|
Just for the record, my I.Q. is 130.
|
Quote:
|
It's over 9000!!!!!!!
|
Quote:
Okay I am making my own movement system. I add 17/16 because 1/16 = pixel, so 17/16 = 1 pixel more than a tile. |
| All times are GMT +2. The time now is 12:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.