Alice Community Proximity Question

 Proximity Question
02kinga
Guest

Status:
Posts: n/a
Proximity Question - 10-23-2012, 06:08 AM

For my current project I have a proximity setup so when I get within a set distance of a certain object it will come to me. The problem I have is that I want it to stop chasing me when I get out of that distance.

I have given an example of what I am trying to accomplish in the attachment.

Thanks,
Aaron K
Attached Files
 Example-Proximity.a2w (664.2 KB, 3 views)

x2495iiii
Super Moderator

Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
10-23-2012, 11:50 AM

Here you go.

Having the zombie move to the camera, as you had him do, is basically asking him to teleport to the camera, making outrunning him impossible.

To make him chase you, you need to make him face the camera and move forward just a bit, but in a 0 second duration, making those tiny movements seem like one fluid motion.

The same goes for the motion of the camera. Making it move forward a tiny amount, but in a 0 second duration allows for smoother, less jerky movement. To increase the camera's speed, just increase the distance value.

Be sure to make the zombie slower than you, though, or again, outrunning him will be impossible.
Attached Files
 ProximityCoolness.a2w (665.5 KB, 8 views)

(')>

02kinga
Guest

Status:
Posts: n/a
10-25-2012, 06:29 PM

Quote:
 Originally Posted by x2495iiii Here you go. Having the zombie move to the camera, as you had him do, is basically asking him to teleport to the camera, making outrunning him impossible. To make him chase you, you need to make him face the camera and move forward just a bit, but in a 0 second duration, making those tiny movements seem like one fluid motion. The same goes for the motion of the camera. Making it move forward a tiny amount, but in a 0 second duration allows for smoother, less jerky movement. To increase the camera's speed, just increase the distance value. Be sure to make the zombie slower than you, though, or again, outrunning him will be impossible.
Thanks for your help, was very useful!

Aaron K

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge