Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How to make a game work? (http://www.alice.org/community/showthread.php?t=3543)

Dameria 12-11-2009 01: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.

infowire 12-11-2009 11:23 PM

1 Attachment(s)
ok i think i got the count up and down figured out.

how do i get rid of the decimal ?[ATTACH]2063[/ATTACH]

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

Dameria 12-12-2009 10:12 AM

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

infowire 12-12-2009 10:16 AM

yeah that counter the way i did it it doesn't work like i need it to. I cant stop it.

Dameria 12-12-2009 10:22 AM

well post the world then and I will see whats wrong

infowire 12-12-2009 10:54 AM

i did post it... its few posts up.... just blends in with my post.

Dameria 12-12-2009 11:18 PM

1 Attachment(s)
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.

infowire 12-13-2009 02: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...

Dameria 12-13-2009 08:33 AM

1 Attachment(s)
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

infowire 12-13-2009 04:34 PM

1 Attachment(s)
Ok here is what i got so far, if you have improvements for me please let me know!


All times are GMT -5. The time now is 10:29 AM.

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