![]() |
onwater2 not working
I have the following script running:
PHP Code:
They both use the exact same checks. With wall checking, the detection is perfect. However, if I start trying to detect water, half the time the player will go halfway into the body of water and such. It seems to have a slight delay in actually registering water. This is clientside, by the way. Can this please be fixed? :( edit: after some testing, onwater2(x,y,1,1) will only check a one pixel area for water, NOT 1 tile, like onwall2. HOWEVER, onwater2(x,y,2,2) functions the same as onwall2(x,y,1,1)... so I don't know what the hell is going on. Here's in the script I used to test: PHP Code:
Red box represents my water check, and the green is the wall check. Both are identical, except one returns true(the onwall2) and one does not -- these results are also shown over the player's head, left is the water check and right is the wall. |
Does it work in the bigger areas?
|
Quote:
Stefan, could this be fixed please? I don't want to rewrite a WHOLE movement system to accommodate for a bug. |
Quote:
For now anyway, maybe just use a solution like the following? PHP Code:
|
onwall2 is fine, you just have to be aware of Graal's polygon calculation bug, since onwall2 seems to use the same code. Not sure about onwater2 though, but I can't image why it wouldn't function properly. I will give it a go soon.
|
please fix! thank you
|
| All times are GMT +2. The time now is 03:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.