Merge branch 'master' of https://gitlab.hexaquo.at/ggjg20/bodypartfighter
This commit is contained in:
commit
26138d0b6c
BIN
3D Input/Mensch_Kopf.blend
Normal file
BIN
3D Input/Mensch_Kopf.blend
Normal file
Binary file not shown.
BIN
3D Input/Mensch_Kopf.blend1
Normal file
BIN
3D Input/Mensch_Kopf.blend1
Normal file
Binary file not shown.
@ -75,19 +75,18 @@ func _physics_process(delta):
|
|||||||
|
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
if event is InputEventMouseButton:
|
||||||
if event is InputEventMouseButton:
|
if event.pressed:
|
||||||
if event.pressed:
|
if _viewport.get_viewport().get_mouse_position().x >= 0:
|
||||||
if event.button_index == BUTTON_WHEEL_UP:
|
if event.button_index == BUTTON_WHEEL_UP:
|
||||||
_attachment_point.get_node("Limb").rotate_z(0.1)
|
_attachment_point.get_node("Limb").rotate_z(0.1)
|
||||||
elif event.button_index == BUTTON_WHEEL_DOWN:
|
elif event.button_index == BUTTON_WHEEL_DOWN:
|
||||||
_attachment_point.get_node("Limb").rotate_z(-0.1)
|
_attachment_point.get_node("Limb").rotate_z(-0.1)
|
||||||
else:
|
else:
|
||||||
print("Mouse Click at: ", event.position)
|
|
||||||
_prev_mouse_pos = event.position
|
_prev_mouse_pos = event.position
|
||||||
_viewRot = true
|
_viewRot = true
|
||||||
else:
|
else:
|
||||||
_viewRot = false
|
_viewRot = false
|
||||||
|
|
||||||
|
|
||||||
func body_part_chosen(params):
|
func body_part_chosen(params):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user