merge
This commit is contained in:
commit
07d6ae0743
@ -66,6 +66,7 @@ collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
||||
[node name="Torso" parent="." instance=ExtResource( 1 )]
|
||||
[connection signal="pressed" from="GUI/HBoxC/VBoxC/Start" to="." method="_on_Button2_pressed"]
|
||||
|
||||
[editable path="Torso"]
|
||||
|
||||
|
@ -78,8 +78,14 @@ func _input(event):
|
||||
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
||||
if event is InputEventMouseButton:
|
||||
if event.pressed:
|
||||
_prev_mouse_pos = event.position
|
||||
_viewRot = true
|
||||
if event.button_index == BUTTON_WHEEL_UP:
|
||||
_attachment_point.get_node("Limb").rotate_z(0.1)
|
||||
elif event.button_index == BUTTON_WHEEL_DOWN:
|
||||
_attachment_point.get_node("Limb").rotate_z(-0.1)
|
||||
else:
|
||||
print("Mouse Click at: ", event.position)
|
||||
_prev_mouse_pos = event.position
|
||||
_viewRot = true
|
||||
else:
|
||||
_viewRot = false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user