Do functions in gdevelop work the same as in construct 2

I made a onrail arcade light gun game in scirra construct 2 and I created functions for all my enemy attacks and would use variables to change where the enemy would spawn and where they would go like this


all those varaibles are spawn x spawn y go to x y the sprite size and so on

can I do this in gdevelop?

With GDevelop, you can create your own actions or even behaviors:
https://wiki.gdevelop.io/gdevelop5/behaviors/events-based-behaviors/

Maybe this extension can be useful to you:
https://wiki.gdevelop.io/gdevelop5/extensions/object-spawner/