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 01-14-2010, 05:30 PM

Sorry, no way to delete objects, but you can make them isShowing = false, which is the closet you get. Why would you want to delete the object while its running anyway?


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
xxx
Guest
 
Status:
Posts: n/a
Default 01-14-2010, 05:58 PM

basically my idea for the game is that when somebody clicks on an animal they gain 10 points and if they click on a person they lose 10 points. so please tell me if there is anything i should know.but i do not know how to do it. sorry, it is my first time doing an interactive game.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-14-2010, 06:01 PM

You can do that easily without deleting any objects.


(')>
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 01-14-2010, 06:07 PM

If you want us to help you directly, just post the world and we will fix the method. If you want to do it yourself, then just make the if/else statements where if the object clicked on is a human make the human isShowing = false and make the variable for the score go down by 10 or whatever. Then for the animals make isShowing = false and make score go up by 10. Do it for each one.

There is an easier way by using object lists, but I don't think you know them, and they are hard to explain. We can do it for you though if you want.


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
xxx
Guest
 
Status:
Posts: n/a
Default 01-14-2010, 06:31 PM

how do i send u my alice world?
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 01-14-2010, 06:34 PM

post another reply, except this time before click "Submit Reply", scroll down to "Additional Options" and click the "Manage Attachments" button. Then click "Choose File" and choose the file you want, and then click "Upload" to the right of it, then when its finished uploading you just exit out of that window and submit the reply.


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
xxx
Guest
 
Status:
Posts: n/a
Default 01-14-2010, 06:35 PM

thx for all the help.
Attached Files
File Type: a2w interactivegame2.a2w (5.56 MB, 1 views)
   
Reply With Quote
Old
xxx
Guest
 
Status:
Posts: n/a
Default 01-14-2010, 06:37 PM

i really hope you may send this back to me very soon because i go to sleep at an early time and i would appreciate getting it back tonight. thank you
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 01-14-2010, 07:06 PM

Ok I fixed it so that when you click on a human the points go -10 and the human disappears, and when you click on animal it goes +10 and animal disappears.
Attached Files
File Type: a2w interactivegame2.1.a2w (5.52 MB, 2 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
xxx
Guest
 
Status:
Posts: n/a
Default 01-14-2010, 07:19 PM

wow thank you so much! how did u get all people under one variable and animals under another?
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.