strategy for matrix of interactive images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

strategy for matrix of interactive images

Post by melristau » Thu Jul 07, 2016 12:16 am

Trying to update and move old Hypercard stack to LC. (The stack allows one to describe a system process.)
In HC i used a matrix of buttons, drawing from and extensive library of icon resources to visualize user interactions.
Just beginning with LC and using a matrix of 238 jpegs. Is this similar approach best strategy for LC??
plan.gif
Old HC Plan
plan.gif (4.21 KiB) Viewed 3743 times
Gridder.jpg
New LC layout
rebuilding visual programming app originally created in 1993 as Hypercard stack

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: strategy for matrix of interactive images

Post by [-hh] » Thu Jul 07, 2016 10:28 am

Not enough information.
Can't you simply convert your icon resources to images and use the old/running code?

p.s. For editing such a lot of objects better use (at first) LC 6 or LC 7.
shiftLock happens

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: strategy for matrix of interactive images

Post by MaxV » Thu Jul 07, 2016 2:57 pm

I don't think you need 238 buttons. You need just to master these commands:
  • mouseMove
  • mouseDown
  • mouseUp
Look these real time moving path editing: https://youtu.be/IFKb3CzWznI
You may force the loc property of objects to the near position of your grid during MouseMove used to move object. Grid would be just an image. It would simplify your code.
Moreover you can divide you objectes in actives (start/stop, signal transformers, etc.) and inactive ones (wires), so your control everything loop will check only active elements.
In the end no matrix, but only few active elements.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: strategy for matrix of interactive images

Post by melristau » Thu Jul 07, 2016 6:05 pm

Thanks for guidance MaxV and -hh

Is 6.7.11 a best choice for HC conversion?

Off to the benevolent Hyperactive Software...
rebuilding visual programming app originally created in 1993 as Hypercard stack

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: strategy for matrix of interactive images

Post by MaxV » Fri Jul 08, 2016 7:45 am

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply