units cannot be moved sometimes

 :: Bugs

Go down

units cannot be moved sometimes Empty units cannot be moved sometimes

Post by jonny on Sun Jan 17, 2016 10:24 pm

so i encountered a problem where the units apparently spawn outside of the map and therefore cannot be moved anymore this is especially problematic if u command a larger army and find urself having 20-30 units stuck to the wall

jonny
Guest


Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by Templar_VII on Wed Jan 20, 2016 11:08 am

Hi Jonny.
Maybe I already fixed this bug, but I can't commit to the store, because my PC has been broken. I'll commit it as soon as possible.

The problem appears if a unit changes the map tile right? If the unit has something to attack right after it appears at the edge of the screen, the unit get stuck?
Templar_VII
Templar_VII
Admin

Posts : 137
Join date : 2015-01-04

View user profile http://hightreason.forumotion.net

Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by jonny on Wed Jan 20, 2016 1:58 pm

yes that seems about right (i also had a siege tower getting stuck once but i dont know how u handled the attacks with that one)

jonny
Guest


Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by Templar_VII on Wed Jan 20, 2016 2:09 pm

Thanks for the response.

How to handle with siege towers you can find here: All about units
Templar_VII
Templar_VII
Admin

Posts : 137
Join date : 2015-01-04

View user profile http://hightreason.forumotion.net

Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by jonny on Wed Jan 20, 2016 2:17 pm

lol i know how to use seage towers but i wasnt sure how u coded them since u said they get stuck when they can attack something on loadup however i had a siegetower get stuck and they dont really have an attack option (i asume u made them all child classes of a general class with attack function and therefore had to implement those for the siege towers as well causing the same problem)

jonny
Guest


Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by Templar_VII on Wed Jan 20, 2016 9:23 pm

lol. You are absolutely right. I have a base class for all units. It also seems to me illogical why the siege tower gets stuck. I'll have a look at the code, as soon as I get my new PC.
Templar_VII
Templar_VII
Admin

Posts : 137
Join date : 2015-01-04

View user profile http://hightreason.forumotion.net

Back to top Go down

units cannot be moved sometimes Empty Re: units cannot be moved sometimes

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 :: Bugs

 
Permissions in this forum:
You cannot reply to topics in this forum