Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I stop a method?
Old
900qq
Guest
 
Status:
Posts: n/a
Exclamation How do I stop a method? - 02-11-2013, 03:49 PM

Hello alice community, I'm new to alice and I'm taking it as a math course. I'm making this program that would start as a menu, then the user would be able to select a character(object) and control it, after the character moves to the starting position of the race. However, my problem is that, I have animations(methods) for each character, so If i would select a character it would properly work and move to the starting position but, the animations are still running. I don't know how I would be able to stop the animations from running at the same time as the movement animations when the user is controlling the object. Your help would be much appreciated, thanks =)
Attached Files
File Type: a2w Nature Run.a2w (8.26 MB, 1 views)
   
Reply With Quote
Old
900qq
Guest
 
Status:
Posts: n/a
Default 02-11-2013, 06:29 PM

Here is the updated version of the file
Attached Files
File Type: a2w Nature Run.a2w (8.28 MB, 3 views)
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-11-2013, 06:42 PM

Just say: if object is at least x meters away from x, do x.


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
900qq
Guest
 
Status:
Posts: n/a
Default 02-11-2013, 07:14 PM

Quote:
Originally Posted by bob3584 View Post
Just say: if object is at least x meters away from x, do x.
Thanks for the reply! U really helped me by thinking the same thing over again, which gave me an idea. Although I still need to have my characters on a loop with their animations, until the characters are chosen. I'm updating the file once again to show my progress. I used a dummy object as a switch since I'm using a proximity function. Maybe a boolean or something would keep my characters in loop until a character is picked?
Attached Files
File Type: a2w Nature Run.a2w (8.28 MB, 1 views)
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-12-2013, 11:35 AM

Ya, make a function that makes him move untill he is clicked on.


My avatar will always be a preview of what I am currently working on.
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.