I am a beginner in TGF2 and I need to create the following event:
Condition: upon pressing "space bar"
Action: to split a given father rectangle into two son rectangles with the same width as the father rectangle and lengths equal to half of the father rectangle length
Notes: after the event...
1) the two son rectangles must occupy the same place that the father rectangle occupied before
2) the sum of areas of the son rectangles must be equal to the father rectangle area