Alice Community  

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

Reply
 
Thread Tools Display Modes
Stop Moving!
Old
7yrold4Alice
Guest
 
Status:
Posts: n/a
Question Stop Moving! - 08-08-2011, 05:40 PM

Hi! This thread is similar to "Any way to "disable" methods?" By Deidara1BG
I have this world that I want a guy to walk around. In my game, click on someone to talk to them but the guy talks but still walks around. STOP MOVING!
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 08-12-2011, 05:28 PM

One word: Variables


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
Reply With Quote
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default 08-12-2011, 09:28 PM

Alright:

You need a variable called NotMoving and make it a boolean (true/false). Inside your player click event:

Code:
NotMoving == true (it starts false)
inside your walking method:

Code:
If NotMoving == true
//talk code here
//Also, if you want him to start walking again after the talk code, just do this:
NotMoving == false
Else
//walk code here
and than inside a 'when world starts' method just add a 'Loop Infinite Times' with the walk method inside it.

hope this helps.
   
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.