Introduction to Buffers - GameMaker Tutorial
Game Maker uses a very high-level scripting language and normally does not allow you to get very close to the actual computer hardware - but buffers allow you to get around this. They're nothing more or less than a continuous, uninterrupted section of memory that you can do whatever you want with, and are probably as close to pointers as you're likely to get in Game Maker (the actual pointer functions notwithstanding) if you're into that kind of thing.
Note: I'm doing this demo in Game Maker Studio 2, but everything here will still work in Game Maker Studio 1 if you're still using that (although some of the data types were not properly implemented at that point).
Uses include (but aren't limited to): manipulating large numbers of data very quickly, using the built-in networking functions, extremely fast file read / write times, sending data to shaders (in the form of vertex buffers), receiving data back from shaders (in the form of the target surface), audio manipulation, interfacing with DLLs, and undoubtedly many other things which I have yet to encounter.
A note on floating point values:
As of my writing this, the Game Maker documentation claims floating point values have the same range as the signed integer types of the same size - they do not. Floating point values have a much greater maximum range than integers, but at the cost of precision - that is to say, you can only store a certain number of significant digits with a high degree of accuracy. You can read more about them on the Wikipedia page:
https://en.wikipedia.org/wiki/Floating-point_arithmetic
Advanced buffer things:
https://youtu.be/Z4Urp5spLJg
Using buffers with files:
https://youtu.be/os9aotyP8Tk
There's only like a dozen lines of code, but if you really want it:
https://www.mediafire.com/file/o4lnfybbcm5e9ij/Buffers.yyz/file
#GameMaker
#GameMakerTutorial
#GameMakerBuffers
- - - - -
I've now made that Patreon:
https://www.patreon.com/wizardragon
That promised social media link spam.
https://twitter.com/DragoniteSpam
Anyone wanna donate?
https://tinyurl.com/DragoniteSpamSellsOut
Rate, comment, subscribe, watch more, enjoy!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Introduction to Buffers - GameMaker Tutorial», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.