Here I am trying to create a generative/ interactive piece.
Below is a rough(and inaccurate) plan of what I hope to achieve.
1. The card will open with only the large central circle showing.
2.When the circle is clicked, 3 lines stem out from the circle and at the end of these lines is a circle which is 3/4ths of the size of the first circle. And so on - Each time you click a circle, 3 more circles (each one 3/4ths the size of the one they stem from) appear. The lines will also get proportionally shorter.
Due to the potential number of lines and circles, I don't think that creating the entire expanded image first and then just hiding/showing parts as they are clicked is the best way to do this, surely there must be a repeat loop or something that can achieve this it is essentially doing the same thing with each click
I'm still new to Livecode/ coding/ programming so a point in the right direction would be greatly appreciated!
Thanks!
Circle-based fractal(ish) project.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Circle-based fractal(ish) project.
Hi Callum,
Anyways, "create" or "clone" is what you want I think.
it's a start.
Simon
Edit: You'll also want to:
"set the script of last graphic to"
all that stuff above with slight changes
Edit 2: Now that I think about it "clone" is better because it also clones the scripts. You just need to determine the max number (smallest circle) of clicks.
For you, I think, it's best you mention this every time it is an "installation". Your questions are good but sometimes I try to figure the end result to come up with an answer. Your end results are not like the average poster here (send an email or something).create a generative/ interactive piece
Anyways, "create" or "clone" is what you want I think.
Code: Select all
on mouseUp
create graphic "Oval"
set the rect of last graphic to 10,20,20,30
set the loc of last graphic to item 1 the mouseLoc, 40 --well something like that
end mouseUp
Simon
Edit: You'll also want to:
"set the script of last graphic to"
all that stuff above with slight changes
Edit 2: Now that I think about it "clone" is better because it also clones the scripts. You just need to determine the max number (smallest circle) of clicks.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Circle-based fractal(ish) project.
Calmrr3,
Just discovered your project on Vimeo to create fractal-like tree structures in Livecode.
Would it be possible to share some of the scripting you used to generate this branching behavior?
For the Learning Landscape prototype (summary posted in the LC Games area), I'd love to see a simple tree-like mind map created wherever a user wants to drag and drop a seed in a landscape.
Appreciate any help!
Best,
Mark
Just discovered your project on Vimeo to create fractal-like tree structures in Livecode.
Would it be possible to share some of the scripting you used to generate this branching behavior?
For the Learning Landscape prototype (summary posted in the LC Games area), I'd love to see a simple tree-like mind map created wherever a user wants to drag and drop a seed in a landscape.
Appreciate any help!
Best,
Mark