Please, someone knows how to split a given rectangle into two new rectangles with the lengths equal to half of the original rectangle length in TGF2 or MMF2?
I need help to start a big project (new unprecedented video game)
Printable View
Please, someone knows how to split a given rectangle into two new rectangles with the lengths equal to half of the original rectangle length in TGF2 or MMF2?
I need help to start a big project (new unprecedented video game)
Are your larger rectangles predefined sizes?
If so you could use destroy the larger rectangles and create the smaller rectangles. eg. User clicks large rectangle, create small rectangles (A & B) at x,y of large rectangle, then destroy large rectangle.
Thank you so much. I'll try it. It will be a big start for me. But if someone to know how to make that transfomation with no creating new objects... I'll appreciate more, because the transformation will repeat many times, in sequence.
Here's a very basic example, that may help :)
Attachment 19198
Attachment 19200
Sorry the above example is a F2.5 file I've attached the image to explain what I did. (each of the coloured rectangle actives were 32 x 64)
I also made the actives drag and drop so that you could clearly see the rectangles being halved.
Once more, thank you for your help. It's very good to know that the Clickteam Community is realy a big team.
I will adapt your example to apply it in my project.