Alice Community  

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

Reply
 
Thread Tools Display Modes
Increment method?
Old
Siraea
Guest
 
Status:
Posts: n/a
Exclamation Increment method? - 12-01-2009, 05:54 PM

Hello! I'm sort of new to the Alice program, been using it as part of my Computer Sciences course. I'm currently making a game as a final project, and I need to use the Increment method. But I can't figure out where it is! I'm using version 2.2. If somebody could please tell me where it is, I'd greatly appreciate it!

Of course, I may end up finding it myself. I'll keep looking. Thanks! :P
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 12-01-2009, 07:33 PM

You make a number variable and you drag it to your methods area and select increment.
   
Reply With Quote
Old
shaydon
Senior Member
 
Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
Default 07-08-2011, 05:51 AM

Quote:
Originally Posted by dubastot View Post
You make a number variable and you drag it to your methods area and select increment.

does it have to increment by 1?
is there a way to make it increment by 0.25? or 0.1?
this would really help out a lot =D
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-08-2011, 09:42 AM

Quote:
Originally Posted by shaydon View Post

does it have to increment by 1?
is there a way to make it increment by 0.25? or 0.1?
this would really help out a lot =D
Love your avatar, by the way.

And no, you can only make it increment by 1, though you can say
Code:
variable = variable + (number)
to make it go up by a different amount. But the only option for incrementing is 1.


--------------------------------------------------------------------------------------------------------------------------
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
Old
shaydon
Senior Member
 
Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
Default 07-08-2011, 09:44 AM

Quote:
Originally Posted by TauTrumpsPi View Post
Love your avatar, by the way.

And no, you can only make it increment by 1, though you can say
Code:
variable = variable + (number)
to make it go up by a different amount. But the only option for incrementing is 1.
Could you please post an example word??
because i'm a "hands on" learner

thanks
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Lightbulb 07-08-2011, 02:15 PM

Quote:
Originally Posted by shaydon View Post
Could you please post an example word??
because i'm a "hands on" learner

thanks
There you go, just look at the main method.
Attached Files
File Type: a2w incrementByAnother.a2w (394.8 KB, 19 views)


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 07-08-2011, 04:16 PM

My example world that I made before I saw Arty's, and figure I might as well post-
Attached Files
File Type: a2w Number Variables.a2w (16.5 KB, 9 views)


--------------------------------------------------------------------------------------------------------------------------
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
Old
shaydon
Senior Member
 
Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
Default 07-08-2011, 06:32 PM

Quote:
Originally Posted by TauTrumpsPi View Post
My example world that I made before I saw Arty's, and figure I might as well post-
Thanks guys!!!
i will look at both
   
Reply With Quote
Reply

Tags
increment method help

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.