Area affecting the speed of the player

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hawaw

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!

:bust_in_silhouette: Reply From: Inces

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 body_entered signal, and just make speed double the speed on that signal, and back to normal on body_exit_signal.