Alice Community  

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

Reply
 
Thread Tools Display Modes
Noob question:problems changing vehicle setting to detach object
Old
todd0312
Member
 
todd0312's Avatar
 
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Noob question:problems changing vehicle setting to detach object - 09-24-2011, 09:52 AM

Hello helpful, wise friends:

I'm having a problem with an assignment in a Programming and Logic class. A few weeks ago, I had no experience with Alice, so yes.. this is a noob question.

In my animation, I have a rabbit attached to a locust, which flies up to Alice Liddel, lands, then "is supposed to" get off of the locust, then tip his magician's hat (attached by having the rabbit set as its vehicle).

The problem I am having is getting the rabbit to detach from the locust. I changed the vehicle setting for the rabbit to world; however, I am still unable to get the rabbit to move independently of it. Somehow it has stayed attached.

After resetting the rabbit's vehicle from the locust to "world" within the fly loop, I was able to get the rabbit to turn to the left, which I was not able to do, for some reason, when I tried to do this outside of the loop. Still, I cannot get the rabbit to move forward and actually detach from the locust.

The only way I could get this part of the animation to look half-way normal was to change the opacity of the locust so it seems to disappear. However, there is still the issue of detaching the hat from the rabbit's head.

So... I hope this made sense. The assignment is due tomorrow, so... any advice would be greatly appreciated.

Thanks in advance,

Todd
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 09-25-2011, 12:30 AM

Your world please?


:D
   
Reply With Quote
Old
adams34
Guest
 
Status:
Posts: n/a
Default 09-25-2011, 10:01 AM

You must get relax and try to understand and vulize what is happening
   
Reply With Quote
Alice world with set and detach vehicle issues
Old
todd0312
Member
 
todd0312's Avatar
 
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Alice world with set and detach vehicle issues - 09-25-2011, 11:04 AM

Hello again helpful mates:

I have attached my Alice file with which I am having trouble.
The main part of the code to look at is located in a method called “locust.fly”.

The problem seems to be this: I can detach the rabbit from the locust and do whatever I please with the rabbit – but only if I change “set vehicle to world” for the rabbit directly in method “locust.fly”. Using “whiteRabbit set vehicle to world” in “my first method” has no effect.

Conversely, If I enable “set vehicle to world” for the rabbit in my Main Method, but not in the“locust.fly” method, coding behaviors for the rabbit still have no effect.

When “set vehicle to world” for the rabbit is in the “locust.fly” method only, no behaviors coded for the rabbit can be activated in my Main Method. All rabbit behavior must take place in the locust.fly method. Actions I coded for the rabbit after the introduction of “locust fly” into the Main Method fail to activate (the last “Do Together block” at the end of world.my first method( )).

I practice applying methods in “Add objects” view by right clicking the object in the “object tree”, choosing methods, and then applying them. I have no trouble attaching and detaching vehicles in this way. I suppose I can have all rabbit behavior take place in the method meant for the locust to fly up and drop the rabbit off, as the rabbit at least seems to act independently in this method.

There is a good chance that I am missing something really obvious, and if that is the case, I apologize.

Hopefully, I explained this well, but there is a good chance I did not explain it clearly enough. I tried. If you need any clarification, of course, I will be more than happy to do so.

Any advice will be appreciated.

Much thanks in advance,

Excuse any typos and such. In a rush again.

Todd
Attached Files
File Type: a2w Alice song opening.a2w (3.44 MB, 2 views)
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 09-25-2011, 11:09 PM

there's nothing wrong with it? the rabbit get's off the locust.


:D
   
Reply With Quote
Well, I did fix that problem, but I have added more. Care to look at?
Old
todd0312
Member
 
todd0312's Avatar
 
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Well, I did fix that problem, but I have added more. Care to look at? - 10-01-2011, 08:13 AM

Hello:

Rude of me not to thank you for responding to my post.

I had a problem with an infinite loop on the tail. It forced me to attach and detach within that particular method. Still haven't fixed that part, but...

I have a part in this animation where a weird Egg shaped dough boy pops out of the hat, but I can't get him to walk in the right direction. Also, his "walk" poses do not work correctly. Is it the walk methods attached, or is it the way I inserted them into the code? I was thinking maybe I was needing to modify the pre-set walk methods, but I am guessing it's some dummy move I made.

I must sound really lazy to not just figure it out on my own. I have all this other similar study stuff - and full-time work. Too much code analysis, and the small slot allotted to current programming knowledge may cause: (insert future emoticon for exploding brain here).

Also, the last part of the song that is supposed to be displayed is not showing. Hey... I'm American - brain riddled by television and cheetos.

Anyway, may be FUN to analyze all the messed up (and really clunky) coding, if that's the kind of thing you are into. And really... who isn't?

Thanks in advance - I hope.

Todd
Attached Files
File Type: a2w assign4.a2w (10.29 MB, 1 views)
   
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.