Hi Fahri,
<code>
circle.bind(KEYDOWN, system.evtHandler, key.LEFT_ARROW,
ADJUSTVELOCITY, **{'vx': 2})
</code>
and
<code>
circle1.bind(KEYDOWN, system.evtHandler, key.LEFT_ARROW, SETVELOCITY,
**{'vx': 2, 'vy': 0})
</code>
both have the same effect, because both uses "vx" but not "d_vx" :)
I am writing a platform game with Mekanimo, so I must adjust the
velocity depending on if the character is on the ground or not etc. So
I need something like:
<code>
if (body.isOnGround()) {
set the velocity X
} else {
set the velocity Y
}
</code>
thanks
a nobody