Hey all,
I am trying to add weed to my fps game.. its a piece of weed not animated but there is a problem... i tryed :
dbLoadImage("data\\map\\grass_T.BMP",2);
dbLoadObject("data\\map\\weed.x",257);
for(num=1;num<57;num++)
{
dbCloneObject (257+num,257);
dbTextureObject(257+num, 2);
dbRotateObject(257+num,-90,0,180);
dbPositionObject(257+num,38+(4*num),129,58+(4*num1));
}
it showed it but there was a serious fps problem.. from 60 to 10...
i tried full map with weed and the game stucked and never showed it... it stucked my pc
num2=0
dbLoadObject("data\\map\\weed.x",257);
for(num=1;num1<57;num1++)
{
for(num=1;num<57;num++)
{
num2= num2+1;
dbCloneObject (257+num2,257);
dbTextureObject(257+num2, 2);
dbRotateObject(257+num2,-90,0,180);
dbPositionObject(257+num2,38+(4*num),129,58+(4*num1));
}
}
Someone know a way to do it withought stuck?