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