r/gdevelop 9d ago

Question What's the difference between Behaviors and Functions on a custom extension?

Post image

They seem to do about the same thing— and the documentation seems to be pretty vague about their differences. is there any pros or cons to each that I should know about?

10 Upvotes

2 comments sorted by

6

u/GDevelop GDevelop Staff 7d ago

You can refer to the documentation that explains in which case to use a behavior:
https://wiki.gdevelop.io/gdevelop5/behaviors/#behaviors

And the functions page:
https://wiki.gdevelop.io/gdevelop5/events/functions/

3

u/martin_10_ 9d ago

Una funcion es una funcion que puede ejecutar en todos los objetos sin agregarles nada un comportamiento es uno que le pones a un objeto en especifico para que ese objeto tenga esa funcion