Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-11-2009, 02:38 PM

I don't know what you mean, but if post the world I can see if I can help with what you want it to do.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
infowire
Guest
 
Status:
Posts: n/a
Default 12-12-2009, 12:23 AM

ok i think i got the count up and down figured out.

how do i get rid of the decimal ?new.a2w

I need to be able to start and stop it when space is hit...

Last edited by infowire; 12-12-2009 at 12:42 AM.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-12-2009, 11:12 AM

I don't think you can get rid of the decimal, one of the bugs of Alice.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
infowire
Guest
 
Status:
Posts: n/a
Default 12-12-2009, 11:16 AM

yeah that counter the way i did it it doesn't work like i need it to. I cant stop it.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-12-2009, 11:22 AM

well post the world then and I will see whats wrong


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
infowire
Guest
 
Status:
Posts: n/a
Default 12-12-2009, 11:54 AM

i did post it... its few posts up.... just blends in with my post.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-13-2009, 12:18 AM

Ok here I made this version right now. To make it so that you can press the spacebar and it stops the number right then, I had to make an if/else for every number 1-10 going up, and 1-10 going down. You can see the method when you open the world.
Attached Files
File Type: a2w FootballTest.a2w (304.3 KB, 9 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
infowire
Guest
 
Status:
Posts: n/a
Default 12-13-2009, 03:06 AM

Thank you, wow that's a lot of code for a simple thing.

Is there a way to store the Power Value in a variable ? so i can use it... right now it is stored in the two variables...

Last edited by infowire; 12-13-2009 at 03:12 AM.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 12-13-2009, 09:33 AM

Ya, you would just add to each of the if/else statement to set power# to either powerUp or powerDown. I'll do it for you. When you make your football version, make sure not to have the wold.spacebar method have an else statement. Only have it make spacebar == true. Then in a later method, after the football has been kicked and it reappears but before you reinitialize the numberChange method, then in that method at the end do spacebar == false.

Oh and in the future, you can upload the worlds through a reply to this thread like I have below by, when in the reply part, and after you have written what you want to say, scroll down to where a button says "Manage Attachments". Click that, and then click "Choose File" and choose where your file is, and click it. Then press "Upload" on the right and it should upload to your reply!

EDIT: Post 123, lol
Attached Files
File Type: a2w FootballTest.a2w (311.9 KB, 3 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301

Last edited by Dameria; 12-13-2009 at 09:46 AM.
   
Reply With Quote
Old
infowire
Guest
 
Status:
Posts: n/a
Default 12-13-2009, 05:34 PM

Ok here is what i got so far, if you have improvements for me please let me know!
Attached Files
File Type: a2w FootballGame.a2w (1.79 MB, 8 views)
   
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.