Search found 4091 matches
- Fri Jul 25, 2025 9:04 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Marquee Controls in Browse Mode?
- Replies: 1
- Views: 91
Re: Marquee Controls in Browse Mode?
Hi Jon, I made a stack that does what I think you want. The script is in the group "myGroup" and the group needs something (in this case a graphic "grcBack") to catch mouseDown etc. as the lowest (first) layer of the group. Click in the group and move the mouse to select controls, on mouseUp the sel...
- Wed Jul 23, 2025 7:34 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
Hi rcmills, In trying to do a puzzle I noticed that it is at times hard to place the puzzle pieces exactly where they belong using the mouse. I thought it would be a nice option to move the puzzle pieces and make them "magnetic". By that I mean that if you come to within 2 pixel of the correct posit...
- Tue Jul 22, 2025 3:37 pm
- Forum: Talking LiveCode
- Topic: LiveCode Create - Trial or Evaluation Access
- Replies: 5
- Views: 275
Re: LiveCode Create - Trial or Evaluation Access
Hi Andrew,
I think Livecode Headquarters can answer that question.
Why don't you just write to Support?
Kind regards
Bernd
I think Livecode Headquarters can answer that question.
Why don't you just write to Support?
Kind regards
Bernd
- Wed Jul 16, 2025 8:55 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
I made a script that arranges the Puzzle Pieces in correct order and position. Consider it a "cheat" script or a final arrangement script since manual placement of puzzle pieces is difficult. on mouseUp local tMaxColNum, tMaxRowNum, tNumPieces local tCollect, tShortImgName, tExpectedNumPieces, tStar...
- Fri Jul 11, 2025 9:49 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
I think it is due to the fact that the folder does not exist. It is not automatically created. Here is what worked for me on a Mac. on mouseUp put the number of images of this card into nImages put specialFolderPath("documents") & "/app data/testing/tempImages" into tTempPath set the itemDelimiter t...
- Fri Jul 04, 2025 9:51 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
I post here an example of making a Puzzle from an image. This version uses the complete set of mask images (64) that make up the possible pieces. This version assembles the layout of the mask images automatically and in random fashion over the image. Each time you run this the puzzle will be unique....
- Thu Jun 26, 2025 9:01 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
I played around with the problem of creating a mask for different shapes for the puzzle pieces and then apply that mask to an image to cut-out the actual puzzle piece image. Please have a look at the two stacks I append. ImageMasksForPuzzlePieces_2 makes the image masks which you then apply in the s...
- Tue Jun 24, 2025 10:01 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
... What I want to do is create the puzzle piece shapes randomly using coding. There seems to be no way to do that to images in LC. At least, none that I have found. I played around with the problem of creating a mask for different shapes for the puzzle pieces and then apply that mask to an image t...
- Sat Jun 21, 2025 5:44 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
Hi Jim,
that is very cool. Thank you.
http://netrin.on-rev.com/misc/puzzlePie ... vecode.zip
Kind regards
Bernd
that is very cool. Thank you.
http://netrin.on-rev.com/misc/puzzlePie ... vecode.zip
Kind regards
Bernd
- Fri Jun 20, 2025 9:15 am
- Forum: Off-Topic
- Topic: But how is this possible?
- Replies: 36
- Views: 8936
Re: But how is this possible?
@Richmond,
Please note that it is slightly ironic that in admonishing a spelling error you committed one yourself.
Bernd
Please note that it is slightly ironic that in admonishing a spelling error you committed one yourself.
Kind regardsEn Anglais vous ecrivez le mot 'exemple' avec un 'A': exAmple.
Bernd
- Thu Jun 19, 2025 6:23 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 63
- Views: 21174
Re: cutting irregular pieces from image for puzzle game
So, is there no way to remove (turn transparent) portions of an image, pixel by pixel? In my attempt in the app I attached several replies ago, looking at the imageData of the image, it seems that the zeros I put in the first of the four bytes (the alpha channel) for each pixel immediately return t...
- Wed Jun 18, 2025 1:23 pm
- Forum: Off-Topic
- Topic: But how is this possible?
- Replies: 36
- Views: 8936
Re: But how is this possible?
Hi Renaud, My impression is not that LC as a whole has slowed down. You are looking at a specific aspect of LC namely accessing text and processing it repeatetly. I know that times to access "word x of line y" grow exponentially with the number of lines. And you do that very often in your script. Bu...
- Tue Jun 17, 2025 9:16 am
- Forum: Off-Topic
- Topic: But how is this possible?
- Replies: 36
- Views: 8936
Re: But how is this possible?
Hi Renaud, Here is a version of button Analyser that is pretty fast. I tested against "War and Peace", Gutenberg 3.4 MB Nombre de mots dans le texte : 566719 Nombre de mots extraits : 18575 Extraction réalisée en : 16 secondes Also against The Project Gutenberg Du côté de chez Swann by Marcel Proust...
- Mon Jun 16, 2025 5:30 pm
- Forum: Off-Topic
- Topic: But how is this possible?
- Replies: 36
- Views: 8936
Re: But how is this possible?
Hi Craig, this code is functionally equivalent to your "for each code" on mouseUp put "" into fld 2 ; wait 20 get fld 1 put 0 into lineNum set the cursor to watch put the ticks into startTime put empty into tPrevLine repeat for each line aLine in it add 1 to linenum if aLine = tPrevLine then put lin...
- Mon Jun 16, 2025 12:55 pm
- Forum: Off-Topic
- Topic: But how is this possible?
- Replies: 36
- Views: 8936
Re: But how is this possible?
how can you go from 1 tick to more than 600 times the same time to do exactly the same thing with exactly the same computer equipment? I think the main problem is that LC >= 7 uses unicode. And you access lines and words in your repeat loop quite often. Every time LC has to count lines and words wh...