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, 07:20 PM

I used an object list, you can see it in the world part, there are two. One for animals, one for humans. Then in the click method I just did for all humans together, do spellCast and subtract 10 points, same for animals except add 10 points. Check the click method.


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:30 PM

how come when i try to use world functions to put one of those math functions in so that if the player had negative points the screen would go blank and he would lose it does not work? i did the same thing with zero and it worked fine.
   
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:33 PM

Just make it so after it does the click method you do "if score < 0, turn screen black" I don't know how you would make the screen black, there are many ways. One way it to make a square, put it right up against camera and turn it black, and then turn isShowing = false and set vehicle to camera. Then when you want game to end you just do black screen isShowing = true.


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:51 PM

for the points wen i click on something when it is suppose to get 10 points it increases to 20 points instead and if you lose 10 points the points system makes you lose 20 points instead.
   
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:53 PM

Well I don't know then, check the click method then and see what it says there. Maybe try making it +5, so that it will do +10 instead of +20, that might work, although it should not be doing that.


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, 08:00 PM

it goes to 10 points either way when i try but the scientist casts the spell thing twice and that looks messy. take a look. thx!
Attached Files
File Type: a2w interactivegame2.2.a2w (5.54 MB, 3 views)
   
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, 08:05 PM

Sorry but I actually have a history paper due tomorrow and I just started it, I really have to work on that. I wasn't supposed to procrastinate this much as it is, so I can't help anymore today. Try to figure it out yourself, or maybe someone else on the forum can help.


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
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, 10:27 PM

I'll take a look at it. Shouldn't take too long.


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