Alice Community Increment method?

 Increment method?
 Siraea Guest   Status: Posts: n/a 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
 dubastot Senior Member     Status: Offline Posts: 661 Join Date: Apr 2009 Location: Two Steps From Hell 12-01-2009, 07:33 PM You make a number variable and you drag it to your methods area and select increment.
shaydon
Senior Member

Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
07-08-2011, 05:51 AM

Quote:
 Originally Posted by dubastot 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

TauTrumpsPi
Senior Member

Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
07-08-2011, 09:42 AM

Quote:
 Originally Posted by shaydon 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

shaydon
Senior Member

Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
07-08-2011, 09:44 AM

Quote:
 Originally Posted by TauTrumpsPi 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

arty-fishL
Senior Member

Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
07-08-2011, 02:15 PM

Quote:
 Originally Posted by shaydon 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
 incrementByAnother.a2w (394.8 KB, 19 views)

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

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬

TauTrumpsPi
Senior Member

Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
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
 Number Variables.a2w (16.5 KB, 9 views)

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

shaydon
Senior Member

Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
07-08-2011, 06:32 PM

Quote:
 Originally Posted by TauTrumpsPi 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

 Tags increment method help

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops     Alice Player and VR General Discussion     Questions and Comments     The Lounge