How do I

Get help using Construct 2

Post » Wed Sep 28, 2016 4:11 pm

oh sorry about that let me quickly set it all up for you


heres a new capx with everything set up so when u enter game. press map in bottom right and after 10 secs an enemy will attack and after it reaches base 3 secs later it will go to battle
Last edited by darkrealos on Wed Sep 28, 2016 10:39 pm, edited 1 time in total.
B
16
S
5
Posts: 140
Reputation: 1,654

Post » Wed Sep 28, 2016 9:41 pm

I dont understand your capx. Kinda hell to debug. So many objects, so many globals. You should use more instances and different animations. Each instance, in stead of again a new object, is 30 % code less. 30 % less errors. 30% less headaches. My opinion.

So let me show you (one of the many) way(s) to pathfind in a way that it does not looks for a path every tick.
I hope you see the easy use of instances.

And i offer you a very easy way to organise things in an array. I have no idea how you ever gonna balance the troupes in your logic flow. So many variables to change for so many objects in so much code. Look at how easy it gonna be this way.

Hope i helped you, without disturbing.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Sep 28, 2016 10:26 pm

thank you very much for your time and help and yeah i know its bad im always trying to adapt and use new things ive learnt to make things better. i really really do appreciate all the help youve offered me. also did u do a capx? im not sure where to find it?
B
16
S
5
Posts: 140
Reputation: 1,654

Post » Wed Sep 28, 2016 10:42 pm

Yeah i am that idiot that forgot his capx. So familiar.

https://www.dropbox.com/s/mljvdhuws7q4g ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Previous

Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948, ultrafop and 11 guests