Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 7th May 2019 09:48
Could somebody please explain what a memblock is what it does and how to use it ? I understand if I am correct it's a way of creating 3D worlds .
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 7th May 2019 12:32 Edited at: 7th May 2019 12:33
memblocks are a way of retrieving the data for sound/images and objects
understanding the way each piece of data is stored can help you make changes

a sound memblock could help change pitch
an image memblock you could get the color of a particular pixel
an object memblock might help you modify a vertex of an object

ofcourse there are other things that they can do its up to you as its just a way of processing
the data once you understand how its stored

this thread may help get you started https://forum.thegamecreators.com/thread/222027
with examples of the above. if you want to modify sounds my Krazy Grandprix is easily enough
searched and will provide sound modifying. Also if your lucky enough to own the games pack 1
my night driving code has an example of building 3d objects with memblocks by using the block
command
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 8th May 2019 10:54
Quote: "memblocks are a way of retrieving the data for sound/images and objects"

I think that could be a little misleading to a newcomer.
There are commands that will create memblocks from sound, images and objects allowing you to manipulate them but that isn't really what a memblock is.
A memblock, as the name suggests, is a block of memory. Nothing more!
You can create an empty block of memory with the CreateMemblock() command and then use it to store anything at all.

fubarpk's comment that I have quoted is certainly the way memblocks are most commonly used but definitely not all they are used for.

Login to post a reply

Server time is: 2024-11-22 21:22:31
Your offset time is: 2024-11-22 21:22:31