BGE small fixes

- script template use new property syntax
- Python could set the axis/hat to a negative index and crash blender (nobody complained)
- Servo control UI had overlapping text
This commit is contained in:
2009-06-04 07:42:03 +00:00
parent 06fe5deaec
commit cf6ed23578
3 changed files with 10 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#!BPY
"""
Name: 'GameLogic Example'
Blender: 245
Blender: 249
Group: 'ScriptTemplate'
Tooltip: 'Script template with examples of how to use game logic'
"""
@@ -82,10 +82,10 @@ def main():
actu_collide = cont.sensors['collision_sens']
for ob in actu_collide.objectHitList:
# Check to see the object has this property
if hasattr(ob, 'life'):
own.life += ob.life
ob.life = 0
print own.life
if ob.has_key('life'):
own['life'] += ob['life']
ob['life'] = 0
print own['life']
"""
main()