Novice wrote:NP.
If you have Photoshop it has a very usefull function called save for web, it makes images so much smaller in size it's incredible. I saved a 640*480 image that was 1.2 mb to 90 kb and lost none of the quality. I dont know wich other programs have this funtion but you should ask around.
if (distance(redHQ,redTH)>100||coliding with ("Water")) CanBuild=0;
if (CanBuild==1)CreateActor ("redTH");
else PlaySound ("Bleep");
if (CanBuild==0)
{redTH.r=255;
redTH.g=100;
redTH.b=100;}
xscreen = (round(xscreen/50)*50)-25;
yscreen=(round(yscreen/50)*50)-25;
int i,e;
i=(round(xscreen/50)*50)-25;
e=(round(xscreen/50)*50)+25;
if ((xscreen+i)>(xscreen+e)) [variable]=+25;
else [variable]=-25;
xscreen = (round(xscreen/50)*50)+[variable];
Novice wrote:I dont quite understand your problem but i imagine that the solution would be creating a variable that would be -25/+25 and then using an if to check wich is closer,
- Code: Select all
int i,e;
i=(round(xscreen/50)*50)-25;
e=(round(xscreen/50)*50)+25;
if ((xscreen+i)>(xscreen+e)) [variable]=+25;
else [variable]=-25;
or something like this(not sure how much is good, dont have to much time now)and then use
- Code: Select all
xscreen = (round(xscreen/50)*50)+[variable];
Does this help
Users browsing this forum: No registered users and 1 guest