0 votes

Hello, I am trying to make a 2d game that when the player enters an area, his speed will double. I searched everywhere for help but I can't find good information. Can someone help me!

Godot version latest
in Engine by (12 points)

1 Answer

0 votes

You can do whatever You want once You detect collision. ANd I hope You found out how to detect collision when searching everywhere ;).
Generally : your character has a speed variable introduced and uses it for moving. Connect him to area bodyentered signal, and just make speed double the speed on that signal, and back to normal on bodyexit_signal.

by (5,557 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.