You can test it yourself. Make some events and give them all the move route this.moveStraight(this.findDirectionTo(x,y));
Put in a coordinate for x,y. See how much it lags the game.
Thank you I will try this when I get home
I'll need a couple days to finish the plugin I'm currently working on. This I could write in a day but I'd have to look up how to draw a box or ask the Javascript thread.
I would greatly appreciate this. Thank you so much.
Maybe I should be very specific on what type of game I'm making to ensure the plugin works as desired for the project.
The game utilizes Alpha Net Z, not sure if that messes with any code, just thought I'd mention. Players start in a map where the RTS controls are NOT enabled. They click on their towns, manage their people, set taxes, make armies, etc... Then they send their army to another town.
When the armies meet, or when an army hits a town, the players are teleported to a battle map where the RTS control ARE enabled. I would like left click to be held down and dragged to create a box that will give the player indication of what units they will be selecting. Once left click is let go, all units within the boxed area will be "selected". Right click will move all selected units to that position. I would also like Right click to send the selected units to attack enemy units. Just like starcraft, warcraft 2, etc, right click on the enemy will send the units to attack
Hopefully this clarifies exactly what the project requires to be functional.
Thank you so much! Eagerly awaiting your javascript magic!