- Joined
- Sep 26, 2005
- Messages
- 40
I have a spell that is like a Jump. when i do the jump, not long after a some players cannot click buttons.. or rather, there is really a delay on the clicking. so that player may try to cast a spell.. or buy an item or revive and when they click the icon.. they have to wait often 20 seconds up to 2minutes before it responds. sometimes it even happens to the character that does the jumping!
Now, this only happens when this "jump" ability is done online.
how i do the jump is basically like this: i target an area with a dummy spell (dispel).. a dummy unit is then created at my location and is ordered to cast cluster rockets (another dummy spell.. no damage.. no targets with a differnt graphic) on that same target area. then after a timer goes off, my character does is made invunerable, paused and loses his collision and then is made hidden.. the distance from him to the location is measured and set in a Variable.. it then estimates when the graphic finishes and instantly moves that hidden hero to that spot and then unpauses, vunerable again and has collision again and another dummy caster is created that Warstomps the ground, stunning all units around.
now, i dont see what the problem could be.. i've done many spells where i hide units and play with collision, invunerablity and dummy spells.. i've rewritten the code for it like 4 times.. and i have gone over it and over it for leaks. i must have spent like 30 hours working on this thing over the course of a week trying to figure out what is causing that.
it's driving me nuts.
is that the sign of a leak? the only thing that i think has the potential to leak in my trig are the points.. but i var them and then custom script destroy each. i'm very good at covering that and closing things properly. i'm so careful, that i even create backup way of clearing junk up.
now when someone picks that character everyone asks him to Please not jump!
lets say i jump.. what will happen is.. like soon after one of the people that are playing will say something like "what the !@#$#, i can't click on any buttons!" then i'll say "oops, sorry, i used it again".. "quit that!"
when they click the button, they can go grab a drink and come back to finally find it doing what it was told to do.
if you want to see it in action or look at the code, my map is unprotected. it's the "Leap" spell and the hero at the hero select is "Juggernaut". he's a grunt.
thanks for your time. =)
Now, this only happens when this "jump" ability is done online.
how i do the jump is basically like this: i target an area with a dummy spell (dispel).. a dummy unit is then created at my location and is ordered to cast cluster rockets (another dummy spell.. no damage.. no targets with a differnt graphic) on that same target area. then after a timer goes off, my character does is made invunerable, paused and loses his collision and then is made hidden.. the distance from him to the location is measured and set in a Variable.. it then estimates when the graphic finishes and instantly moves that hidden hero to that spot and then unpauses, vunerable again and has collision again and another dummy caster is created that Warstomps the ground, stunning all units around.
now, i dont see what the problem could be.. i've done many spells where i hide units and play with collision, invunerablity and dummy spells.. i've rewritten the code for it like 4 times.. and i have gone over it and over it for leaks. i must have spent like 30 hours working on this thing over the course of a week trying to figure out what is causing that.
it's driving me nuts.
is that the sign of a leak? the only thing that i think has the potential to leak in my trig are the points.. but i var them and then custom script destroy each. i'm very good at covering that and closing things properly. i'm so careful, that i even create backup way of clearing junk up.
now when someone picks that character everyone asks him to Please not jump!
lets say i jump.. what will happen is.. like soon after one of the people that are playing will say something like "what the !@#$#, i can't click on any buttons!" then i'll say "oops, sorry, i used it again".. "quit that!"
when they click the button, they can go grab a drink and come back to finally find it doing what it was told to do.
if you want to see it in action or look at the code, my map is unprotected. it's the "Leap" spell and the hero at the hero select is "Juggernaut". he's a grunt.
Code:
http://www.4shared.com/file/1217560/3071e1fc/treeelderofancients_115b.html