You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the process has been completed pretty quickly.
extendsNode3Dconstmove_offset=0.1constanim_name='ArmatureAction'# Called when the node enters the scene tree for the first time.func_ready():
varcube_anim=$AnimationPlayer.get_animation(anim_name)
cube_anim.set_loop_mode(1)
$AnimationPlayer.play(anim_name) # Replace with function body.# Called every frame. 'delta' is the elapsed time since the previous frame.func_process(delta):
passfunc_input(event):
ifInput.is_action_pressed("Up"):
if$AnimationPlayer.is_playing():
$AnimationPlayer.stop(false)
else:
$AnimationPlayer.play(anim_name)
elifInput.is_action_pressed("Down"):
if$AnimationPlayer.is_playing():
$AnimationPlayer.stop(false)
else:
$AnimationPlayer.play_backwards(anim_name)
The goal is to show the simplest rig based animation created in Blender and used in Godot.
For doing it:
This is the first step before going to more elaborate models.
The text was updated successfully, but these errors were encountered: