RedHenDev/ursina_tutorials

Axe animation v2

Opened this issue · 0 comments

dude how is this code

` if self.buildMode == 1 and key == 'left mouse down':
self.build()
self.axe.animate_position(value=Vec3(0.3, -0.5, 2.8), duration=0.1)
elif self.buildMode == 1 and key == 'left mouse up':
self.axe.animate_position(value=Vec3(2, 0, 2.8), duration=0.1)

    elif self.buildMode == 1 and key == 'right mouse down':
        self.mine()
        self.axe.animate_position(value=Vec3(0.3, -0.5, 2.8), duration=0.1)
    elif self.buildMode == 1 and key == 'right mouse up':
        self.axe.animate_position(value=Vec3(2, 0, 2.8), duration=0.1)`