![]() |
A problem with getangle
Currently scripting some custom projectiles however I'm having a problem with my getangle();
PHP Code:
It's moving in an arc away from the player like this... _| |
add(or subtract, I don't remember) pi/2 to the angle.
|
Neither worked Dusty. :(
|
PHP Code:
Well.... to the point: PHP Code:
PHP Code:
|
Well, Chompy what you said to do was a step in the right direction. It's just going around the player now.
Before what I originally had PHP Code:
|
PHP Code:
|
Didn't work Chompy, the main problem I think is getangle() not working properly. Considering getdir() is working perfectly fine with the same calculations I had in my original post.
|
Problem Solved.
It was where I was calculating the this.x and this.y. I added to the y when I was supposed to be subtracting from it. =D |
| All times are GMT +2. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.