Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
caitlindlc
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2012
Default 01-17-2012, 11:51 AM

So basically i've reworded a section of what you said into a step by step list:

1. loop infinity times a world level method in the main method

2. create a world level function and make an if statement in there

3. drag a world level function that says "both a and b"

4. drag it into b multiple times till you have enough for all the object of hay in the first level

5. drag an "==" in each value. and make it equal to false

6. drag each hay properties "is showing" in the values of a and b all the way through till there are no more hay bales left uncalled and novalues left
(should be "both [hay1] [isShowing] == [false and hay2...")

7. then return true in the first "do nothing" then return false in the "else."

8. call the function in the method you made before in an "if statement"

9. move the camera and guy to camera dummy object 2 from before, duration of 0

But I don't understand step 4. Drag what into b? I might have more questions as I progress through this project. Thank you so much for all of your help!!
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 01-17-2012, 12:33 PM

the way that I would do this is, and I know there are better ways. But I'd make another "ground" and move it up 1000meters and make it so that if the cow eats all of the hay in the lower world' then move up to a dummy object in upper world


<Insert_Signature_Here>
   
Reply With Quote
Old
caitlindlc
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2012
Default 01-17-2012, 06:39 PM

@dakota95 that sounds like a good idea. But how would I go about making the game program automatically advance to the 2nd level dummy after the hay bales in level one have disappeared?
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 01-18-2012, 07:00 PM

do you know how to use if/else statements?

the way you do it is by placing a lot of them inside of each other. Say, if bale1 is showing false, then, if bale2 is showing false, then, if bale three is showing false etc.... Then to dummy object.


<Insert_Signature_Here>
   
Reply With Quote
Old
caitlindlc
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2012
Default 01-30-2012, 08:52 AM

How do I make it (the part that I have circled in red) false, though?This is what I have so far. (PS Please reply soon!)

   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 01-30-2012, 08:58 AM

What you try to do in that part is check IF it's false. You can do that by taking the whole thing, going to ==, and clicking on "false".

Looks like you don't explicitly need to make anything false for this to work, assuming that when you eat hay, it turns the isShowing variable false. To do that, go to your Eat Hay method and drag the isShowing variable from the object's parameters and make it false.
   
Reply With Quote
Old
caitlindlc
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jan 2012
Default 01-30-2012, 09:26 AM

I'm having a little trouble understanding what to do. I'm really desperate to get this project finished since it's due soon. I'm not asking you to do my project (unless you'd like to, by all means, go ahead!) But, please just point out what's wrong in my programming and what I should do to make the camera move to the "level 2" dummy object, which is how I planned to advance to level 2 after the user has made all the hay bales in level one disappear. Thank you very much!!!
Attached Files
File Type: a2w Eat the Hay.a2w (3.83 MB, 7 views)

Last edited by caitlindlc; 01-30-2012 at 09:26 AM. Reason: need to attach
   
Reply With Quote
Reply

Tags
games, how do i, level, levels, tutorial


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.