Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

View Poll Results: Do you understand what I am trying to ask?
Yes, of course. 3 75.00%
NO IDEA!!! 1 25.00%
Voters: 4. You may not vote on this poll

Reply
 
Thread Tools Display Modes
How do I...make a variable use for all methods?
Old
KaiChang
Guest
 
Status:
Posts: n/a
Default How do I...make a variable use for all methods? - 12-04-2009, 04:36 PM

There is a game I'm making, its Hangman. Although my work is confidential, how exactly do I make it so that you insert the letter you pick into a variable, and it automatically is placed in all the methods. (so basically a bunch of method [all over the place] with the same letter connected to 1 variable).

Thanks for the help,
Kai


PS: If you don't really understand it, message me and ill send you a FILE of what I'm trying to talk about. Or I can send you a SCREENSHOT.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-04-2009, 06:50 PM

You should be able to reference a global (world level) string variable from any method in the world. Click the world item, then click create variable and select the string option.


(')>
   
Reply With Quote
request
Old
sania
Guest
 
Status:
Posts: n/a
Default request - 04-26-2011, 03:13 AM

would u plz help me out in my game which is also hangman
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 04-26-2011, 09:59 AM

Quote:
Originally Posted by sania View Post
would u plz help me out in my game which is also hangman
If it is a school assignment, we can help but not do your work for you. If you are working on something for yourself, post it here and we will help in any way we can.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.