Alice Community  

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

Reply
 
Thread Tools Display Modes
help on homework assignment
Old
tacpdaddy
Junior Member
 
Status: Offline
Posts: 4
Join Date: Mar 2015
Default help on homework assignment - 03-21-2015, 09:07 PM

Hello,

I decided to get back into programming through online courses since I'm nearing retirement from the military.

I'm a little stumped on how to finish my homework assignment. I'm no expert with ALICE, but I feel like I have a decent handle on things.

I've created the environment per the instructions, and multiple methods. My sailboat is supposed to pick up all of the object when it's within 3m (which it does), but I'm having issues with the ending..

I've spent about three hours troubleshooting and I can't figure it out... What am I doing wrong in order to have the 3D text show correctly AND only when all 7 objects have been collected?

-thanks in advance!
Attached Files
File Type: a2w 5.x.a2w (302.9 KB, 6 views)
   
Reply With Quote
One Possibility
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default One Possibility - 03-22-2015, 02:07 PM

Didn't look at the project, but:
One way is to setup the 3D Text object, load the characters, place it in somewhere in front of the camera.

Lastly, set it's vehicle to the Camera, and set it's opacity to 0%

Whenever you need it, reset the opacity to 100%

And, yes, It's a good field to enter.
   
Reply With Quote
Old
Funnybone
Senior Member
 
Funnybone's Avatar
 
Status: Offline
Posts: 177
Join Date: Jan 2015
Default 03-22-2015, 03:58 PM

I'd go with what MrMoke said.

And you're in the military?!


hello
















this signature loves you
   
Reply With Quote
Old
tacpdaddy
Junior Member
 
Status: Offline
Posts: 4
Join Date: Mar 2015
Default 03-22-2015, 04:24 PM

Yeah, I'm active duty Air Force.

I'm playing with calling the 3dtext/changing it's opacity. That's simple enough to do, thanks.

I'm now stuck on how to add each object to the picked up object list once it's been picked up so that the text opacity will be called once I have all the objects from the initial object list.

Edit, I found a lame way of doing it.. By saying If object 7 is within 1m of an object, set opacity of 3dtext. It works, but it's not ideal if the user picks up the 7th object prior to the previous 6.

Last edited by tacpdaddy; 03-22-2015 at 05:29 PM.
   
Reply With Quote
Old
Funnybone
Senior Member
 
Funnybone's Avatar
 
Status: Offline
Posts: 177
Join Date: Jan 2015
Default 03-22-2015, 05:22 PM

Edit your post...





starting now. The A word is not allowed here.


hello
















this signature loves you
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 407
Join Date: Oct 2013
Location: Northern Virginia
Default 03-22-2015, 05:29 PM

Dude the Air Force is awesome, Im trying to get into the Air Force academny... They have a great computer science school...


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 407
Join Date: Oct 2013
Location: Northern Virginia
Default 03-22-2015, 05:31 PM

Quote:
Originally Posted by Funnybone View Post
Edit your post...





starting now. The A word is not allowed here.
And you say others are rude to you? Can you please stop just spamming every post with stupid comments, its really annoying and immature...


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 03-22-2015, 05:37 PM

Quote:
Originally Posted by RavenOfCode View Post
And you say others are rude to you? Can you please stop just spamming every post with stupid comments, its really annoying and immature...
Yes, I second this.

And pertaining to this post, you could make a variable that raises by one each time that you pick up an object. Once you get to the seventh object, then you do what you did with the opacity. Sounds like an ambitious project though.


My avatar is from the anime "Hyouka".......

You've probably never seen it, much less heard of it.....

You should watch it........


print("Hello World")
This is python code.

Lakers > Clippers
Vikings > Packers
Cardinals > Brewers/Pirates/Cubs/Reds
   
Reply With Quote
Old
Funnybone
Senior Member
 
Funnybone's Avatar
 
Status: Offline
Posts: 177
Join Date: Jan 2015
Unhappy 03-22-2015, 06:09 PM

I was trying to point out to him that swearing isn't allowed here. Just helping. Jeez, next time you can do it.


hello
















this signature loves you
   
Reply With Quote
Old
Funnybone
Senior Member
 
Funnybone's Avatar
 
Status: Offline
Posts: 177
Join Date: Jan 2015
Default 03-22-2015, 06:13 PM

Quote:
Originally Posted by tacpdaddy View Post
Yeah, I'm active duty Air Force.

I'm playing with calling the 3dtext/changing it's opacity. That's simple enough to do, thanks.

I'm now stuck on how to add each object to the picked up object list once it's been picked up so that the text opacity will be called once I have all the objects from the initial object list.

Edit, I found a lame way of doing it.. By saying If object 7 is within 1m of an object, set opacity of 3dtext. It works, but it's not ideal if the user picks up the 7th object prior to the previous 6.
I remember there being 2 ways of doing it. Turns out the newer version of Alice 2.0 no longer lets you build custom characters, nor does it let you use 2 ways of doing said option (what tacpdaddy said)


hello
















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