Page 1 of 2

"sliding" (wisp whirl) unit from point to point

Posted: Mon Mar 21, 2011 2:44 pm
by SHiNNiNG_FaiTH
helpme1.png
helpme1.png (8.28 KiB) Viewed 8886 times
helpme2.png
helpme2.png (6.1 KiB) Viewed 8916 times
helpme3.png
helpme3.png (12.96 KiB) Viewed 8895 times
helpme4.png
helpme4.png (9.31 KiB) Viewed 8916 times
helpme5.png
helpme5.png (12.61 KiB) Viewed 8889 times
ive been trying to make a wisp whirl were the hero enters a region and it spins him 180 degrees to another region were it turns off this trigger however ive come into alot of problems with this. does anybody have a way for me to do this in GUI?

Please Help ME!


p.s.: 3ice i know you love my pics attached =D

Re: "sliding" (wisp whirl) unit from point to point

Posted: Mon Mar 21, 2011 3:12 pm
by 3ICE
Actually I prefer them through imageshack or other services. My website's storage space is going to run out if we keep using it (eventually).

As for your question, the most obvious thing I'd like to point out is that moving a unit by 180 pixels every 0.06 seconds is going send it flying off the edge of the map almost instantly (in a nice arc). Try moving it by 3-5 pixels instead of 180.
Image

Re: "sliding" (wisp whirl) unit from point to point

Posted: Mon Mar 21, 2011 3:22 pm
by SHiNNiNG_FaiTH
not sure how im to do this, its weird because i have to enter the region 2 times (usually doesnt work first time) and the 180 is its offset

Re: "sliding" (wisp whirl) unit from point to point

Posted: Mon Mar 21, 2011 3:49 pm
by EqualiseR
Solved in-game.

Re: "sliding" (wisp whirl) unit from point to point

Posted: Wed Mar 23, 2011 1:54 pm
by Thurst4blood
shinning_faith wrote:
helpme1.png
helpme2.png
helpme3.png
helpme4.png
helpme5.png
ive been trying to make a wisp whirl were the hero enters a region and it spins him 180 degrees to another region were it turns off this trigger however ive come into alot of problems with this. does anybody have a way for me to do this in GUI?

Please Help ME!


p.s.: 3ice i know you love my pics attached =D
The part with the move unit instantly to point, if you want less leaks use "call RemoveLocation( udg_demonp1 )" to rid of the drastic leaks that would be caused.

Re: "sliding" (wisp whirl) unit from point to point

Posted: Wed Mar 23, 2011 2:05 pm
by 3ICE
Thurst213 wrote:The part with the move unit instantly to point...
If you are referring to a part of his post, please quote that part of the post only. (Like I did now.)

Re: "sliding" (wisp whirl) unit from point to point

Posted: Wed Mar 23, 2011 2:09 pm
by Thurst4blood
I didn't see your post, sorry. If I did, I would of used it. Thanks anyways

Re: "sliding" (wisp whirl) unit from point to point

Posted: Wed Mar 23, 2011 3:14 pm
by 3ICE
What I meant is: Don't waste space by quoting a whole page of text when it is not going to mean anything.
Quote only what you need. In this case, you should have quoted the screenshot of the trigger you were talking about.

EDIT: And you gave bad advice anyway. The massive leaks are not caused by the second trigger. Nobody is going to cringe over demonp1, that is just one point leaked at the 0.1 second mark:
ImageOne leak = not important.
(EDIT2: And that is not even considered a leak, since the variable is used in the next trigger, so it needs to stay in memory.)

What hurts is the point leaks created every 0.06 seconds in the third trigger:
ImageThousands of leaks.
(Exactly 16.666... leaks per second, which is 1000 leaks per minute, which is 60000 leaks per hour.)

Re: "sliding" (wisp whirl) unit from point to point

Posted: Fri Mar 25, 2011 8:26 pm
by SHiNNiNG_FaiTH
whats an easy way to solve that leak?

Re: "sliding" (wisp whirl) unit from point to point

Posted: Fri Mar 25, 2011 9:58 pm
by 3ICE
Follow a memory leak tutorial.