| 03-11-2009, 06:31 AM | #1 |
Right now , I had a idea, the caster would cast a spell at the target location which is 900 distance away lets assume that. Legend X = Caster S = Effect U = Unit --- = 300 distance X---S---S---S This is the visual image which I have created and how do I do that? Units will also be damaged in that 900 distance zone. |
| 03-11-2009, 11:27 AM | #2 |
| 03-11-2009, 12:10 PM | #3 |
Perfect opportunity to allow you to see the code of my next system (which I intend to release soon): To create a line do: JASS:local Line l = Line.create(startX, startY, endX, endY, unitID, unitSize, owner, delay) See the codes for more information. This system is still in construction, but I am sure it can you help you =D |
| 03-11-2009, 12:22 PM | #4 |
What exactly can you do with this Line? I think you need to lay off the sniffy sniffy, Flame_Phoenix :P |
| 03-11-2009, 12:32 PM | #5 | |
Quote:
Ahh.... the line part is soo long! I tried to use the test spell about 50 to 60 times spamming and guess what? after 40 times , I felt lagggg and after the whole thing , I checked my fps and guess what? 60 to 30 fps.... Xombie , can you extract the things that are relevant to the line part? I still don't get how you calculated that , explaination thanks ![]() The waiting time for per post is ANNOYING! I don't see hive having such a huge number to wait , 60 seconds will do instead of 6+ minutes..... |
| 03-11-2009, 12:40 PM | #6 | |
Quote:
Do I look like WinZip to you? |
| 03-11-2009, 08:40 PM | #7 | |||
Quote:
Quote:
Quote:
I can help you, I just need to know exactly what you need. |
| 03-11-2009, 10:42 PM | #8 |
There are many methods for this; but you need to clarify what you want. For example; you can use PolarProjection on a dummy unit and group units as it moves along every iteration. If you don't know how to do this; take a look at my Motion system: JASS://duration - the amount of time which it will be moved over. //force - the amount of movement per unit time. (unit time = MOTION_UPDATE) //x rotation - the amount x rotation based on the number of cycles the unit has done. //y rotation - the amount y rotation based on the number of cycles the unit has done. //initial z - the starting height of the object. //x angle - the amount of rotation based on the x angle. //y angle - the amount of rotation based on the y angle. //z change - the amount of increase/decrease to Z. //Psuedocode; the whole system is submitted in the submission section. I figured a snippit would be easier. for every DUR do set m.rots = m.rots + 1 call SetUnitX(m.rotating, GetUnitX(m.rotating) + Cos(m.xtheta + m.x*m.rots) * m.incr) call SetUnitY(m.rotating, GetUnitY(m.rotating) + Sin(m.ytheta + m.y*m.rots) * m.incr) Another method is to create a rect and segment it. The obvious problem is that rects can only occupy angles of Pi/2. Therfore; for obtuse angles you'd need to create multiple rects and 'link' them. Third option is to create two points; the first being the start and the second being the end, find the angle using the point forumla; find the distance; and sequentially group units in a preset radius using polar projection for every radius in the rectangle. However; by far the easiest is polar projection. There's other methods too, but most are simply not useful. If for some reason you need a perfect mathematical line segment however; I think there's a script in the script section that can calculate the equation of an obtuse line. |
| 03-11-2009, 11:02 PM | #9 | |
Quote:
Take a look at the active users count ..here ..and compare it to hive's hive has like 10times more active users ...so you will wait 10times longer here to get your anwser ... But maybe the anwsers you get here at wc3c are minimum twice as good as the anwsers over at hive .... Since hive has lots of newbies who dont know that much yet |
| 03-11-2009, 11:04 PM | #10 |
By the way, wraithseeker, do you still need help with this? |
| 03-11-2009, 11:22 PM | #11 |
But you don't have to wait 6+ minutes to post again on this |
| 03-11-2009, 11:24 PM | #12 | |
People use exaggerations to express their feelings. Quote:
Notice he says "per post". He's not being a douche bag. |
| 03-11-2009, 11:33 PM | #13 | |
EDIT: NICE EDIT THERE xombie You were ashamed of yourself ? I can edit aswell .... !!! hmm i dont have to wait at all ....after posting only searches have a waiting time of 60 seconds...
|
| 03-11-2009, 11:34 PM | #14 |
To be honest I don't know what he's talking about but he wasn't complaining about the service, I've been pretty good to him. |
| 03-11-2009, 11:41 PM | #15 | ||
Quote:
|
