szpaq234
(szpaq234)
January 7, 2011, 5:54pm
1
Blender ver:2.56
problem with animations solved
i get it now, i have to deactivate previously activated actuator
still, i have a few questions :
where is option “All edges” ?
where can i enable glsl shading ?
final script:
import bge
cont = bge.logic.getCurrentController()
own = cont.owner
senList = own.sensors
actList = own.actuators
if senList["upArrow"].positive:
cont.deactivate(actList["ani_idle"])
cont.activate(actList["ani_walk"])
else:
cont.deactivate(actList["ani_walk"])
cont.activate(actList["ani_idle"])
kmccmk9
(kmccmk9)
January 8, 2011, 4:15pm
2
Blender ver:2.56
problem with animations solved
i get it now, i have to deactivate previously activated actuator
still, i have a few questions :
where is option “All edges” ?
where can i enable glsl shading ?
final script:
import bge
cont = bge.logic.getCurrentController()
own = cont.owner
senList = own.sensors
actList = own.actuators
if senList["upArrow"].positive:
cont.deactivate(actList["ani_idle"])
cont.activate(actList["ani_walk"])
else:
cont.deactivate(actList["ani_walk"])
cont.activate(actList["ani_idle"])
The glsl shading is selected by clicking by choosing Game from the top menu.