Mouse works again
This commit is contained in:
parent
f02f8fc265
commit
080885876c
|
@ -17,6 +17,7 @@ func _on_body_entered(body: Node2D) -> void:
|
||||||
print("Whoops, something went wrong")
|
print("Whoops, something went wrong")
|
||||||
|
|
||||||
func _on_mouse_collision_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
|
func _on_mouse_collision_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
|
||||||
|
print("mouse entered")
|
||||||
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
||||||
var destination = get_global_mouse_position()
|
var destination = get_global_mouse_position()
|
||||||
global_position = global_position.move_toward(destination, 1.0)
|
global_position = global_position.move_toward(destination, 1.0)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levels/levelFinal/core/coreSprites/planetCore_0004.png" id="4_c0dob"]
|
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levels/levelFinal/core/coreSprites/planetCore_0004.png" id="4_c0dob"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levels/levelFinal/core/coreSprites/planetCore_0005.png" id="5_v2s1a"]
|
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levels/levelFinal/core/coreSprites/planetCore_0005.png" id="5_v2s1a"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levels/levelFinal/core/coreSprites/planetCore_0006.png" id="6_in0ky"]
|
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levels/levelFinal/core/coreSprites/planetCore_0006.png" id="6_in0ky"]
|
||||||
[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="8_d4a53"]
|
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="8_d4a53"]
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_macrm"]
|
[sub_resource type="SpriteFrames" id="SpriteFrames_macrm"]
|
||||||
animations = [{
|
animations = [{
|
||||||
|
@ -156,6 +156,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=8 format=3 uid="uid://dxojtfoa4jbe"]
|
[gd_scene load_steps=8 format=3 uid="uid://dxojtfoa4jbe"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://c3qi2ffmxsl8i" path="res://levels/levelOne/exit_zone.gd" id="1_2uwmc"]
|
[ext_resource type="Script" uid="uid://c3qi2ffmxsl8i" path="res://levels/levelOne/exit_zone.gd" id="1_2uwmc"]
|
||||||
[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_h31ej"]
|
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_h31ej"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
||||||
size = Vector2(32, 29)
|
size = Vector2(32, 29)
|
||||||
|
@ -120,6 +120,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=8 format=3 uid="uid://iui8sgglpc55"]
|
[gd_scene load_steps=8 format=3 uid="uid://iui8sgglpc55"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b0brgicfdcox0" path="res://levels/levelThree/exit_zone3.gd" id="1_pekjb"]
|
[ext_resource type="Script" uid="uid://b0brgicfdcox0" path="res://levels/levelThree/exit_zone3.gd" id="1_pekjb"]
|
||||||
[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_ofyjg"]
|
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_ofyjg"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
||||||
size = Vector2(32, 29)
|
size = Vector2(32, 29)
|
||||||
|
@ -120,6 +120,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[gd_scene load_steps=8 format=3 uid="uid://c0h3r0ot5jeds"]
|
[gd_scene load_steps=8 format=3 uid="uid://c0h3r0ot5jeds"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b2wo3pho6jsk3" path="res://levels/levelTwo/exit_zone2.gd" id="1_i04ng"]
|
[ext_resource type="Script" uid="uid://b2wo3pho6jsk3" path="res://levels/levelTwo/exit_zone2.gd" id="1_i04ng"]
|
||||||
[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_qxd85"]
|
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_qxd85"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
||||||
size = Vector2(32, 29)
|
size = Vector2(32, 29)
|
||||||
|
@ -120,6 +120,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_s7fta"]
|
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_s7fta"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_hrtuk"]
|
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_hrtuk"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_2huu8"]
|
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_2huu8"]
|
||||||
[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="24_ho6ck"]
|
[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="24_ho6ck"]
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_hrtuk"]
|
[sub_resource type="SpriteFrames" id="SpriteFrames_hrtuk"]
|
||||||
animations = [{
|
animations = [{
|
||||||
|
@ -252,6 +252,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
mouse_filter = 2
|
||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user