Search found 12 matches

by sinep
Thu Jul 09, 2015 10:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LC crashing with repeat
Replies: 12
Views: 7502

LC crashing with repeat

I am trying to make a repeat or looping function and every time I've tried, Livecode has crashed. I have it so that if a user hits a button it puts "1" to a field. I'd like it to repeat (add 1) every 3 seconds until the user clicks another button called "stop." Every time I try just a simple: repeat...
by sinep
Wed Jul 01, 2015 3:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problems with "undo" (button) for user actions.
Replies: 3
Views: 2683

Re: Problems with "undo" (button) for user actions.

Thank you!

I think I'm headed in the right direction now.
by sinep
Tue Jun 30, 2015 9:45 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problems with "undo" (button) for user actions.
Replies: 3
Views: 2683

Problems with "undo" (button) for user actions.

I've been trying to make an "undo" button for some time now and only have it partially working. I have it so that a user can clone a button (or multiple buttons) and click the "undo" button if they want to delete the last cloned button. It does delete each button in sequence of when it was created e...
by sinep
Thu Jun 25, 2015 2:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete more than one button
Replies: 3
Views: 2732

Delete more than one button

I made a button with the intention that it will reset the page or delete all of the buttons that were created by the user. the following works for deleting one button: on mouseUp delete button "mybutton1" end mouseUp the following also seems to work: on mouseUp delete button "mybutton1" and button "...
by sinep
Mon Jun 22, 2015 9:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Play sound/ stop sound when button clicked. (mute button)
Replies: 5
Views: 5128

Re: Play sound/ stop sound when button clicked. (mute button

Hi sinep, not sure I get this, you are referring to 2 different buttons in your "opencard" and "mouseup" scripts! ... on openCard if the hilite of btn "Sound" of card "Main" then ... on mouseUp if the hilite of btn "Sound" of card "Peace" then ... Are you sure they are "in sync"? Know what I mean? ...
by sinep
Sun Jun 21, 2015 2:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Play sound/ stop sound when button clicked. (mute button)
Replies: 5
Views: 5128

Re: Play sound/ stop sound when button clicked. (mute button

I tried adding that but it didn't seem to change it. I think it might have to do with the order of how I have it written in the script. I'm really new at this so even the simplest of things throw me off sometimes. When my new card opens the background sound for that card starts playing like it shoul...
by sinep
Sat Jun 20, 2015 10:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Play sound/ stop sound when button clicked. (mute button)
Replies: 5
Views: 5128

Play sound/ stop sound when button clicked. (mute button)

I have a sound button on my main card and, if it's hilited/ selected, the sound will play on each additional card as well as the main card. I'm trying to play a different sound file for each card because they're themed differently. I'm trying to create a a mute button so that it starts and stops the...
by sinep
Fri Jun 19, 2015 8:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create a button that deletes objects when they touch it?
Replies: 1
Views: 1986

Create a button that deletes objects when they touch it?

I'm trying to create a button that acts as a trash can of sorts.

The button will sit at the bottom of the screen and I would like it so any object that it slid into it will be deleted.

I'm not sure why it's so hard to find an example. Thanks for any help.
by sinep
Fri Jun 19, 2015 6:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Clone object in runtime and move it to chosen location?
Replies: 7
Views: 4694

Re: Clone object in runtime and move it to chosen location?

dunbarx wrote:Hi.

The clones will, er, clone, because they contain the same script as the parent.

Add a line that sets the script of the last button to empty.

Craig
Amazing!! This was exactly it. Thanks so much to you and the others for helping.
by sinep
Fri Jun 19, 2015 3:05 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Clone object in runtime and move it to chosen location?
Replies: 7
Views: 4694

Re: Clone object in runtime and move it to chosen location?

Okay, another update. I just added "unlock screen" as well as the "wait" which I'm not actually sure if it does anything. Now with the following code the only problem is that each of the cloned buttons will also clone. Is there a way to stop clone so that only "b1" a.k.a. the original button gets cl...
by sinep
Thu Jun 18, 2015 11:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Clone object in runtime and move it to chosen location?
Replies: 7
Views: 4694

Re: Clone object in runtime and move it to chosen location?

If I use the code below I am able to clone my original button (as desired) and move it to where I want (as desired). However, on subsequent clicks, I am only able to clone the newly placed button “b2” and move that clone. I want to keep cloning the original each time it’s clicked and not allow the c...
by sinep
Wed Jun 17, 2015 9:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Clone object in runtime and move it to chosen location?
Replies: 7
Views: 4694

Clone object in runtime and move it to chosen location?

I am trying to make it so that a user can select an image and drag a copy of it to a chosen location without the original image/box moving. For example, say it was a forest building game. I have a side bar with several types of trees. I want to be able to allow the user to select a tree and drag a c...