![]() |
onwall() not working in a gani
I'm using a gani to display the movement of a boomerang. The NPC weapon controlling the boomerang also calculates the position of the boomerang, but it only uses the position to deal damage/pick up items.
When the boomerang strikes a wall, it should place leaps and rebound. However, the weapon part of the script is catching a wall and rebounding. The gani portion which is showing the boomerang can't check for walls, so it looks like the boomerang goes through the wall. Could onwall functions for ganis be added? To back up my claims: [PHP]// Script in gani timeout echo("a" SPC onwall(this.bpos[0]+(10/16),this.bpos[1]+(10/16)) SPC this.bpos[0]+(10/16) SPC this.bpos[1]+(10/16)); // Script in weapon timeout echo("b" SPC onwall(this.bpos[0]+(10/16),this.bpos[1]+(10/16)) SPC this.bpos[0]+(10/16) SPC this.bpos[1]+(10/16)); The positions are consistant, but the gani script never returns true for onwall. |
| All times are GMT +2. The time now is 02:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.