![]() |
|
#1
|
|||
|
|||
Wow thanks! that's really helpful. So if I want the health to continue to drop until I exit the proximity would i just do a While(true) loop?
|
#2
|
|||
|
|||
Quote:
Code:
health = 100 healthloss = False def onEnter(e): if e.target == target: healthloss = True def onExit(e): if e.target == target: healthloss = False manager.onEnter(sensor, onEnter) manager.onExit(sensor, onExit) # Demo def update(): if healthloss: health -= 2 * viz.elapsed() |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpected Avatar lookAt() behavior when using yield statements | chris2307 | Vizard | 2 | 12-17-2013 02:58 AM |
Avatar & Motion Capture Interface | Angie | Vizard | 1 | 08-05-2010 06:17 PM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 09:44 AM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |