Hello,
I started with gamestudio a couple of days ago and followed some tutorials.
I am trying to make an pong game.
I have read in the manuel that supported formats for ent_create are bmp etc.
however i have an bmp file and it says bad file format.
This is my code so far :
Code:
#include <default.c>
#include <acknex.h>
ENTITY* pong1;
action firstpong(){
while(1){
my.x += 1; //These codes are for testing purposes
my.y += 1;
wait (1);
}
}
function main(){
level_load(null); //Creating an empty level for the entity
wait (2); //Waiting for the level to load
pong1 = ent_create("Images/pong.bmp",vector(100,100,null),firstpong); // z is null at vector because i am not making an 3D game.
}
does anyone knows what is wrong ??