MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Is there a such thing as databases in Game Maker?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Is there a such thing as databases in Game Maker?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Is there a such thing as databases in Game Maker?
Mark All Posts Read Today's Posts

Is there a such thing as databases in Game Maker?
Canada Mariotroid
Blooper
Members
Submitter Super Reviewer Iso Collab Contributor Sprite Comp Top 5 (3) Minigame Comp Winner Minigame Comp Runner-Up (4) Minigame Comp Top 5 (5) Music Comp Runner-Up Drawing Comp Runner-Up (4) Drawing Comp Top 5 (5) Skull Badge NCFC Contributor (2) Secret Santa
#1
12-26-2017, 07:31 PM
Recently my bother told me I should to learn Python. He also suggested I learn about databases as they are very used. I assumed it was the same thing as a 2d array in the way he was describing, but he told me they were different things. Anyway, what is a database? Does game maker have databases?

  ↳
HylianDev
Hammer Bro
Members
Site Developer/Webmasters Submitter NCFC Contributor Secret Santa Popeyes Badge MFGG 17th Anniversary MFGG Awards 2017 Winner
#2
12-26-2017, 08:01 PM
I'm no Game Maker expert but I am a web developer. Vinny could tell you even better than me, since he specializes in databases.

A database is its own piece of software. It's either running ln your computer at the same time as your app, or it's on a server and you send and receive info from it.

Typically, you wouldn't use databases in game development, except for online games.

Databases are for storing information, similarly to how you might in an object (or even a 2d array or similar). In fact, they basically do the same thing as when you create a save file. But they also have the ability to receive information (usually via an SQL query) and store it themselves. They're mostly used for when you have a lot of different apps (aka, instances of an online game) or a lot of people using one app (aka a website) and you need a central place to store information.

The same stuff could be accomplished by having a big save file you wrote to, but first you'd have to write that functionlity and have it still not be nearly as good as a database is to work with, and also a single Dev would just never be able to achieve the levels of optimization and flexibility databases have.

If you want to learn databases, I recommend doing so in the context of web development. It's the most practical and common use for DBs, IMO.
Vimimin Wrote:Hylian's day job, little did we know, was saying controversial things on the internet.
Mors Wrote:you fool!!!! you fixed it wrong!!!!

[Image: GGyaUXO.png]

[Image: ggc0JQ0.png] [Image: d7OJc4b.png]
Bibby Team
[-] The following 2 users Like HylianDev's post:2 users Like HylianDev's post
  ↳ VinnyVideo, Willsaber
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
Main Site Moderator Site Developer/Webmasters Wiki SysOp Big Help Submitter Super Reviewer (2) Wiki Contributor Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up Minigame Comp Top 5 (3) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 (2) Drawing Comp Top 5 Game of the Month Winner NCFC Contributor (4) Secret Santa (5) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2017 Winner (3) MFGG Awards 2019 Winner MFGG Awards 2024 Winner
#3
12-26-2017, 10:10 PM
@HylianDev That's a good overview of what databases do. Databases are similar to arrays, but they're even more similar to Microsoft Excel spreadsheets. Databases consist of various tables, which are similar to the different tabs of a spreadsheet. Tables store information in rows and columns, just like spreadsheets. The advantage that databases have over spreadsheets is you can create and enforce relationships between different tables. This helps prevent redundant or outdated data from entering your database.

Databases are a good thing to learn about. Pretty much everything you do on the Internet or on your phone involves databases, even if you don't realize it. Every time you log in to MFGG, you're reading from a database. Every time you make a post, you're writing to a database. You don't need to use databases when making simple video games, but they're essential if you're making complex online multiplayer games.

Game Maker can connect to databases hosted on a server. Here's an example of using databases to host an online high score system.

GM's arrays and data structures (such as ds_list) offer functionality similar to that of databases. For example, in an RPG, you might use them to store information about playable characters' stats and equipment, and then save this data to an external file.

This probably isn't the best explanation ever, but I hope this makes sense. If it doesn't make sense, just let me know and I can clarify.
Course clear! You got a card.

[Image: CourseClear.gif]

[-] The following 2 users Like VinnyVideo's post:2 users Like VinnyVideo's post
  ↳ HylianDev, Willsaber
Canada Mariotroid
Blooper
Members
#4
12-26-2017, 11:11 PM
It makes sense. I kind of figured Gamemaker wouldn't need databases except for online things. Thanks for the clarification! I'll look into them more later, but thanks for now.

  ↳
HylianDev
Hammer Bro
Members
#5
12-27-2017, 10:11 AM (This post was last modified: 12-27-2017, 10:11 AM by HylianDev.)
Codecademy has an SQL course.

If you aren't familiar with Codecademy, it's a site that has code tutorials, but also provides you with an in-browser sandbox for testing your code to see if it works correctly.

I had a very cursory knowledge of SQL about a couple years back, and I used this course to teach me stuff I had somehow missed. Joins and etc.
Vimimin Wrote:Hylian's day job, little did we know, was saying controversial things on the internet.
Mors Wrote:you fool!!!! you fixed it wrong!!!!

[Image: GGyaUXO.png]

[Image: ggc0JQ0.png] [Image: d7OJc4b.png]
Bibby Team

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode