okay, i added to body collided print(“Collided”) but there is nothing in the console
and my value of “increase_amount” is 10 and there is no errors at this time.
— Debugging process started —
Godot Engine v3.5.3.stable.official.6c814135b - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GTX 550 Ti/PCIe/SSE2
Async. shader compilation: OFF
colided
600
entered
colided
700
entered
colided
800
entered
colided
900
entered
colided
1000
entered
colided
1100
entered
— Debugging process stopped —
My ball must move very fast but its like turtle and then even stops, i want to move my ball all the time but after colliding just increase the speed to be not to easy for player.
func _on_YarnMouse_body_entered(body):
print("entered")
if body.is_in_group("Paws"):
emit_signal("score_increment")
print("paws detected")
extends Node2D
var score = 0
onready var score_label = $Timer # Make sure to set the path to your score label node
func _ready():
var yarn_mouse = $YarnMouse # Adjust the path to your YarnMouse node
yarn_mouse.connect("score_increment", self, "_on_score_increment")
func _on_score_increment():
score += 1
score_label.text = str(score)
print("score is added")