Functions, scripts, return values and naming tips in GameMaker Studio 2

preview_player
Показать описание
Pure functions: always returns the same value based on the same inputs.

free functions: accessible from anywhere by anything

methods: functions that are specific to one object. This type doesn't exist in GameMaker, and you can't _really_ create your own functions, they're scripts, but in practice you can use them just like functions.
Рекомендации по теме
Комментарии
Автор

Great video and Interesting ways to use free and pure functions. Kuddos on making a video for GMS2 that makes me think of new ways to code my game!

thrive