So I`ve manage to create a simple fla and manage to upload it to http://wonderfl.net/c/unNZ so if anyone likes to help me he it would be easy.(I did think of posting the code here, but i dont think ppl would read 300+ lines of code and after that help me without knowing visually what i have done so far and what i wanted )
So long story short -> the code in the link does this:
-Checks to see if the cell of the Grid we want to put our object is free - if it is, we can place the box in it.
-Checks to see if the cell that is left of the current object(Box) is occupied - if it is, Check to see if the object in it is 1 less then the current - if it is join them together / if not do nothing (just place it)
-Combine complex objects (like add a object that has 2 boxes(or more) in it to another object that has 2 or more boxes in it ).
Yet the way i have done the coding is not efficient at all.There are many things that i think are not maybe needed, but yet again i couldnt think of a better solution that would in the end work and show what I
m aiming for.
The problem is not that im not satisfied with the code i have so far, the problem is that when I add the Check to see if RIGHT / TOP / BOTTOM cell logic (currently i have only the check LEFT cell logic )it would get quite absurd/chaotic and even now i dont know if i would manage to do it.
So is there someone who would help me do this.