User Tag List

Results 1 to 6 of 6

Thread: How to split a given rectangle into two new rectangles?

  1. #1
    No Products Registered

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to split a given rectangle into two new rectangles?

    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)
    Images attachées Images attachées

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,407
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    No Products Registered

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,407
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Here's a very basic example, that may help

    Halve Rectangle.mfa

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,407
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Rectangle.png

    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.

  6. #6
    No Products Registered

    Join Date
    Jan 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

Similar Threads

  1. How to split a rectangle into two new rectangles with half of the width of that?
    By denival in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 9th February 2016, 07:51 PM
  2. Replies: 17
    Last Post: 30th October 2015, 03:42 PM
  3. Create that rectangle...
    By Danny in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 27th June 2012, 03:52 PM
  4. Movement In A Rectangle
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th April 2008, 09:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •