Search found 77 matches

by problème
Wed Jan 06, 2016 7:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: go to card when i open the application
Replies: 3
Views: 3308

go to card when i open the application

Hello,
When i open my application i want to go to card1, so i do this in the mainstrack script

Code: Select all

on preOpenStack
   go to card "card1"
end preOpenStack
but it does not work, when i open the application, it goes to card2
by problème
Tue Jan 05, 2016 1:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: random() : test if a number does not appear twice
Replies: 3
Views: 3686

random() : test if a number does not appear twice

Hello, (Happy new year)
I have a program that randomly selected numbers , then checks whether the number is not already out before, if it is already out , it chose a new number if not we put it in a list. The program ends when all the numbers are out.
My program work correctly with 10 numbers but ...
by problème
Fri Dec 11, 2015 8:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: delete into a loop repeat
Replies: 4
Views: 4243

Re: delete into a loop repeat

thanks for yours helps
by problème
Thu Dec 10, 2015 11:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: delete into a loop repeat
Replies: 4
Views: 4243

delete into a loop repeat

Hello,

i scroll image and when a image leaves the screen to the left, i delete him exept the floor but after delete i have a error to the line put the short name of image x into nomImage


repeat with x=1 to the number of images of card "niveau 1"
put x & cr after message
put the short name of ...
by problème
Thu Dec 10, 2015 9:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: test with different name
Replies: 3
Views: 3740

test with different name

Hello

I have image "bird" and others image "branch1","branch2",... . When the bird jump, it stops falling when it touches the floor or a branch, How can i test if he touches a branch, i try to rename branch1,branch2, ... to branch but it's don't work


command JumpDown
if ( ( the bottom of image ...
by problème
Thu Dec 10, 2015 3:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create unlimited objects that have their own behaviors
Replies: 5
Views: 4975

Re: Create unlimited objects that have their own behaviors

Hello
I do this with your suggestions. I have a problem, context : there is a object graphic "balle1" that created and move, when i create a new object graphic "balle2" , "balle1" blocks until "balle2" to be create.


global numBalle, uneFoisTire

on keyDown touche
if touche is "shoot" then ...
by problème
Tue Dec 08, 2015 6:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: press both two arrows keys
Replies: 6
Views: 6048

Re: press both two arrows keys

Thank you so much, you have saved me time.
by problème
Tue Dec 08, 2015 6:42 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: get the name of the card in wherein it is
Replies: 3
Views: 3370

get the name of the card in wherein it is

Hello,
I am on a card "myCard" and i want get his name so i don't this :

Code: Select all

command getCardName
   put the name of this card into nom
   delete char 0 to 5 of nom
   put nom is "myCard" 
end getCardName
I get result false
by problème
Sat Dec 05, 2015 7:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: extract element with itemDelimiter
Replies: 6
Views: 5073

Re: extract element with itemDelimiter

i did a careless mistake thanks for the helps
by problème
Sat Dec 05, 2015 5:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: press both two arrows keys
Replies: 6
Views: 6048

Re: press both two arrows keys

thanks for your help
by problème
Sat Dec 05, 2015 5:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create unlimited objects that have their own behaviors
Replies: 5
Views: 4975

Create unlimited objects that have their own behaviors

Hello

i would want to know how create a number of object unlimited. Each object move independently one of the others. I do this but when i press a key for the second time. I have a rectangle in the middle of my screen besides the graphic oval "balle".
I want to do when i press on a key , a "ball ...
by problème
Sat Dec 05, 2015 1:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: press both two arrows keys
Replies: 6
Views: 6048

press both two arrows keys

Hello,

I would want to know how to do for have as information , if the user press both the arrow key right and the arrow key up .
I would make a call different command if the user press only arrow right.


on arrow key k
test k
end arrow key

command test k
if k is "right" then
command1
else ...