Bee-Ant wrote:Thats why i said it needs a deep thinking. For starting,using basic code is okay i think. Then when the project is nearly finished,just edit code to that simpler one.
Just my opinion
int constrain(int smallest, int largest, int value)
{
return max(smallest, min(value, largest));
}
x = constrain(left, right, x);
int horiz;
int vertic;
for(i=0; i<300; i++){
horiz=i%20; //find horizontal cell
vertic=(i-horiz)/20; //find vertical cell
horiz*=32; //multiply by cell width
vertic*=32;
CreateActor("jewel", "redjewel", "", "", horiz, vertic, true);
}
Hblade wrote:You can try using small images, (Nes or SNES resolution sprites) and scaling them with a canvas
Hblade wrote:The for statement is very powerfull :3 It updates everything in it in 2 frame. Check out the HP bar to see what I mean if you want to
for (i=0; i<4; i++)
{
setpen(color, transp, size);
moveto(0, i);
lineto(width-1, i);
i+=4;
}
int QDist(int shotX, int shotY, int targetX, int targetY) // quick and dirty distance
{
return (abs(shotX - targetX) + abs(shotY - targetY));
}
Users browsing this forum: No registered users and 1 guest