HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating Effects in a line

03-11-2009, 06:31 AM#1
wraithseeker
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
xombie
You mean, kind of like this?

Storm Hammer by xombie.
03-11-2009, 12:10 PM#3
Flame_Phoenix
Perfect opportunity to allow you to see the code of my next system (which I intend to release soon):
To create a line do:
Collapse 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
Attached Files
File type: w3x2D3S.w3x (26.3 KB)
03-11-2009, 12:22 PM#4
xombie
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
wraithseeker
Quote:
Originally Posted by Flame_Phoenix
Perfect opportunity to allow you to see the code of my next system (which I intend to release soon):
To create a line do:
Collapse 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

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
xombie
Quote:
Originally Posted by xombie
Xombie , can you extract the things that are relevant to the line part?

Do I look like WinZip to you?
03-11-2009, 08:40 PM#7
Flame_Phoenix
Quote:
I think you need to lay off the sniffy sniffy, Flame_Phoenix :P
Hã !? sniffy sniffy? I don't get lol...

Quote:
Do I look like WinZip to you?
I feel like I could give you +rep for this answer, ubber sense of humor.

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....
It is impossible, there is no test spell for the line yet ....

I can help you, I just need to know exactly what you need.
03-11-2009, 10:42 PM#8
Blackroot
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:

Expand JASS:

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
akolyt0r
Quote:
Originally Posted by wraithseeker
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.....
Well then post there ...
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
xombie
By the way, wraithseeker, do you still need help with this?
03-11-2009, 11:22 PM#11
Bobo_The_Kodo
But you don't have to wait 6+ minutes to post again on this
03-11-2009, 11:24 PM#12
xombie
People use exaggerations to express their feelings.

Quote:
Originally Posted by wraithseeker
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.....

Notice he says "per post". He's not being a douche bag.
03-11-2009, 11:33 PM#13
akolyt0r
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...

Hidden information:
you ^^
03-11-2009, 11:34 PM#14
xombie
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
akolyt0r
Quote:
Originally Posted by xombie
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.
i dont really know either ...but one thing is sure ..you were wrong aswell

Hidden information:
I still believe i am right !!