Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 10-20-2010, 09:26 AM

OK now look. Like I said. This is just the one thing that I am not very good at in alice. Converting is another but thats a different story. I played the game, and your question has a simple answer but what is the problem with trying what I said?


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-20-2010, 01:00 PM

I thought that I did try what you had said ... maybe I'm just confused.

when I look at your programs code, I don't see the correlation to my code I'm wanting to develop. I'm not sure how to proceed with making my code work properly.
I think for this particular one, I'm done trying to make it work... it just doesn't make much sense to me
   
Reply With Quote
Old
Snowfir3
Guest
 
Status:
Posts: n/a
Default 10-20-2010, 01:17 PM

So am i correct here... you want to ask questions and add to the number they get correct or incorrect (respectivly) after each answer, then display it in a text string that the charactors say?
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-20-2010, 02:56 PM

sort of.

it's to show how to demonstrate parameters, global variables and methods.

the intent is to create an Alice world with at least three objects of your choice ...


Create two global variables called numberCorrect and numberIncorrect.
Create new variable and create numberCorrect as a number with an initial value of zero.
Do the same thing for numberIncorrect.
In the main method, create three variables that you will send to the called methods.
Create at least three methods to respond to three questions you will be asking in the main method.
In each method, create a parameter (not a variable) where the answer will go when the method is called from the main routine.
Since the numberCorrect and numberIncorrect are global variables, we can access them from all the methods in the project.
In the methods, you increment the number right and wrong.
At the end of the main routine, you then display the number the user got correct and incorrect.

make sense?

I tried this(but with only two objects) but could not get it to execute correctly.... did you see my world I had attached several days ago?
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 10-20-2010, 03:15 PM

Quote:
Originally Posted by ssuttles View Post
sort of.

it's to show how to demonstrate parameters, global variables and methods.

the intent is to create an Alice world with at least three objects of your choice ...


Create two global variables called numberCorrect and numberIncorrect.
Create new variable and create numberCorrect as a number with an initial value of zero.
Do the same thing for numberIncorrect.
In the main method, create three variables that you will send to the called methods.
Create at least three methods to respond to three questions you will be asking in the main method.
In each method, create a parameter (not a variable) where the answer will go when the method is called from the main routine.
Since the numberCorrect and numberIncorrect are global variables, we can access them from all the methods in the project.
In the methods, you increment the number right and wrong.
At the end of the main routine, you then display the number the user got correct and incorrect.

make sense?

I tried this(but with only two objects) but could not get it to execute correctly.... did you see my world I had attached several days ago?
I do have something just like that in mg JA command System. I know its in there. So look again


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-20-2010, 04:34 PM

I looked again ... even took screenshots to compare.

Not much help to me
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 10-20-2010, 09:11 PM

Sorry but, what do you want me to do?


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
SirThorfinn
Senior Member
 
SirThorfinn's Avatar
 
Status: Offline
Posts: 232
Join Date: Sep 2010
Location: Some where Unreal!
Default 10-20-2010, 09:23 PM

Im not understanding the question your asking ether


/|..__________________/\_
/ `---___________----_____|]-------<BLAM>------>
/_==o;;;;;;;;_______.:/
), ---.(_(__) /
// (..) ), ----"
//___//
//___//

<Youtube Page> (Not much there but maybe something you'll like) http://www.youtube.com/user/SirThorfinn?feature=mhum
<Xbox Live Gamertag> SirThorfinn

-----Friend of Thor-------------------------------------------
-----Spartans NEVER Die------------------------------------
All most anything on SirThorfinn is me... Almost.
   
Reply With Quote
Old
ssuttles
Guest
 
Status:
Posts: n/a
Default 10-21-2010, 08:40 AM

Here is what I have put together.

Hopefully by looking at the program/code you'll see what it is that the program is suppose to do.
I think it is close but needs a tweak or two somewhere to really work properly.

I don't know enough about Alice to describe it any other way or to make it work any better.

let me know if this helps at all ... see the attached
Attached Files
File Type: a2w parameters_methods.a2w (728.1 KB, 1 views)
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 10-21-2010, 09:30 AM

Quote:
Originally Posted by SirThorfinn View Post
Im not understanding the question your asking ether
Sorry, Its just to confusing. I have no idea what ssuttles wants...


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
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.