• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows GMS 2 - Access Database Connection and request

T

TraceHD

Guest
Hi,

how I can connect a "Access Database" to my game project?

I would try something like:

GML Code in obj_enemy -> Create
getSQL = http_get("Database/game_db.accdb"); // I guess the path is from the project-file place to the database place
enemyHP = getSQL.Enemy_Basestats.enemy_hp[1]; // [ 1 ] should take the request from enemy_ID 1 , the first one in the list
enemyShield = getSQL.Enemy_Basestats.enemy_shield[1];
enemySpeed = getSQL.Enemy_Basestats.enemy_speed[1];

I know its wrong, I just tried to show what the result should be.

Thanks :)
 
Top