OZONE Asylum
Forums
DHTML/Javascript
Need some help aiming an enemy sprite
This page's ID:
30701
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
thanks. I guess I should have been a little more specific about the help i need. What i need to know is what's the trig function I use to calculate the angle to a point (the player from the enemy perspective) from another point(the enemy). I have the XY coordinates obviously, so I need to test for all the values in the range of the specific angle to see if the player position falls in so I know the direction to move the enemy. TO DO : LOL I'm such a noob. I don't even know how to implement half of what I just wrote. Maybe there's an example you could point me towards that I could learn from. Tutorials don't help too much. I have to see the code working and absorb it that way. Maybe I'll look deeper into my scattered files to see if I have the answer somewhere on my machine already. Thanks for your help
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »