Card help!

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
Higgison
Posts: 2
Joined: Sat Dec 07, 2013 11:16 am

Card help!

Post by Higgison » Sat Dec 07, 2013 11:24 am

Hi all,
I have been doing a school project, however I recently finished it and am now searching to (try) to see what I can do.
My idea is simple; create a basic menu system using cards, then from there move on to develop a dungeon crawler type game.
So far I have linked my button "Exit" to ask a yes or no question then close the card (all is good there). I am now working on the "Help" button (ironic I know), using it I simply want to change the cards, however after a few hours of trawling through many forum posts the only help I could find was how to change it, so I put it in then tried it.

Code: Select all

on mouseUp
   go card 2
end mouseUp
However this is where I fall; I have 2 separate cards; my "Home" card (Mainstack) called Dungeon Crawler in Stack Inspector and HomePage in Card Inspector; then my other card called HelpPage (Sub-stack) in both Card and Stack Inspectors.
I simply need to know what I need to rename and such, or whether I am just being stupid and it is blindingly obvious...
Many thanks in advance!

EDIT: I have found in Card Inspector where it says "Number" however I cannot change the value.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Card help!

Post by jmburnod » Sat Dec 07, 2013 11:56 am

Hi Higgison,
Sorry if I didn't understand your question.
I understand you have two cds, one on the main stack and the second on a substack.
I have found in Card Inspector where it says "Number" however I cannot change the value.
If that is the case then you can't change the number of the current card because there is only one cd in each stack.

That is a good idea to use the name of card instead the num of card.
In your case i think:

Code: Select all

go to card "helpPage" of stack "the name of your substack" 
should works

Maybe you are confused with stack and card. "HelpPage" is the name of the card's name or substack's name ?

Best regards
Jean-Marc
Last edited by jmburnod on Sat Dec 07, 2013 12:44 pm, edited 2 times in total.
https://alternatic.ch

Higgison
Posts: 2
Joined: Sat Dec 07, 2013 11:16 am

Re: Card help!

Post by Higgison » Sat Dec 07, 2013 12:04 pm

Thank you so much!
You have solved my problem and it now works perfectly!

Post Reply