Alice Community  

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

Reply
 
Thread Tools Display Modes
Lost on Boat Obstacle Course Exercise.
Old
erco5
Junior Member
 
Status: Offline
Posts: 5
Join Date: Nov 2014
Default Lost on Boat Obstacle Course Exercise. - 12-05-2014, 10:23 AM

Hey everyone,
I'm lost on how to make the toruses sink under water when the boat gets near them in the chapter 7 "Boat Obstacle Coure". I have set them to drop 10 meters, but for some reason they do it before the boat gets close to them. Basically, the world starts and all toruses sink. I set up a loop, a While, a Do together in various combos, but I just can't figure out how to make them disappear when the boat approaches.

After this, I still have to figure out how to make the score change. I'm feeling like this is something simple and i'm overthinking it.

Thanks for the help.
   
Reply With Quote
Can you post the world?
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 408
Join Date: Oct 2013
Location: Northern Virginia
Cool Can you post the world? - 12-06-2014, 09:50 AM

Can you post the world? Im sure i could help if you did that.


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
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 12-25-2014, 12:33 AM

By the sounds of it, you have your method to drop your obstacles activate when you start the world instead of using a logic statement with a threshold. you'll need to have an event "while the world is running" a method in the "during" slot that uses an if statement saying if the boat is within certain distance of obstacle, have obstacle move down


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.