Search found 7 matches
- Tue Sep 12, 2017 1:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
I don't see why you'd need a database, you can save LC arrays to disk as either binary or text files and read them in directly. I'm using an SQLite database (i.e. a local one stored in the 'Documents' folder) because I think that having a 'grid' to deal with rather than a string of text is easier t...
- Mon Sep 11, 2017 10:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
Here's how I'd do it. I'd use Klaus' suggestion to set button icons rather than copy whole images, it has a number of benefits. You don't need to have existing buttons on the card, they can be created on the fly and assigned an icon in script. I would keep a list (probably an array, but a plain tex...
- Fri Sep 08, 2017 12:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
Thank you for the detailed response, I appreciate being able to throw ideas around (as it seems, there are many ways to fry a fish). With groups, the only issue I see is that the object will be visible (or invisible) on every card and there will be no way of tracking where items have been 'dropped'....
- Thu Sep 07, 2017 5:39 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
Guess all I'll have to do on top of this is have some kind of a switch statement that knows where the original card for each object is, so that the copying can work properly. I might need some kind of clean-up code inside the switch too, so that 'rooms' don't get filled up with invisible objects. N...
- Wed Sep 06, 2017 11:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
Seems like this could be an ideal use of the copy command. From the dictionary: Syntax: copy [object [to {card | group | stack} ]] | [chunk of field] So you might do something like you started with, user clicks, set the object to invisible (picked up, etc etc), when you get to the card you want to ...
- Wed Sep 06, 2017 1:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Re: Can I move an image between cards?
Hi Jetboy, 1. welcome to the forum! :D 2. Not sure I understand your problem correctly, but can't you use a GROUP for your inventory stuff? This way the SAME group could be placed on every card and thus all objects are available on each card. Best Klaus Thanks! I thought about this option... my con...
- Wed Sep 06, 2017 11:53 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Can I move an image between cards?
- Replies: 26
- Views: 13613
Can I move an image between cards?
I am making a game with an inventory system. Throughout the game you navigate N, S, E, W...etc between different cards (1st person, point and click adventure style). When you click on the image of a collectable item, the visibility is set to 'false' and the item is entered into a database (1 of 6 in...