Functions vs behaviors


#1

I am new to Gdevelop. Just now I learnt about behaviors and functions in Gdevelop. They seemed interchangeable to me.
I want to know where do you use which?


#2

I think behaviors are functions targeting objects.
Functions are generic: you can make a function to handle sound volume, it won’t be related to any object. You can also make a function that uses objects without being a behavior.
Functions that are strictly meant for objects are behaviors.
Hope it’s clearer.


#3

It sure helps, thank you for the insight.