Ok bgt, what the hell?
So I have the following code fragment as a computer class. Yes, I know it's messy, and I didn't include all of the code, bite me it's just for messing around. Anyway, the loop=p.play part won't work even though I know it works with the exact syntax in other games. Does somebody see something I don't?
comp@[]comps(0);
class comp
{
timer walktimer; int walktime; bool hittable=true; int points=1; int type=0; bool enemy=true;
double x=random(0,maxx); double y=random(0,maxy); double z=0; double ox,oy,oz; int target;
int loop;
comp(int t, int wt, bool hit, int p, , bool enemy, double cx, double cy, double cz)
{
type=t;
if(type=="test")
{
walktime=350;
}
walktime=wt; hittable=hit; points=p; curse=curse; curses=curses;
x=cx; y=cy; z=cz;
enemy=enemy;
ox=cx; oy=cy; oz=cz;
loop=p.play_2d("sounds/"+type+".ogg",me.x,me.y,cx,cy,true);
}
Cheers.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector