Unfortunately that wasn't the problem. I temporarily disabled the while loop but the game was still damn slow...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// --------- aiming ---------
if((character[1].View==1)||(character[1].View==4)){
if((gzielx==character[1].x)&&(gziely==character[1].y)&&(gziel==false)){
a=Random(20);
if ((character[1].x>=cEgo.x+100)&&(a>=10)){ // to the right of the player
gzielx=cEgo.x+130;gziely=cEgo.y;gziel=true;
}
if ((character[1].x<cEgo.x+100)&&(a>=10)){ // to the left of the player
gzielx=cEgo.x-130;gziely=cEgo.y;gziel=true;
}
if a<10){
while ((Region.GetAtRoomXY(gzielx, gziely) != region[1])){ // somwhere
gzielx=30+Random(700);gziely=300+Random(270);gziel=true;
}
}
}
}
// --------- moving ---------
if (gziel){
gziel=false;
character[1].Walk(gzielx, gziely);
}
if((gzielx>=character[1].x-2)&&(gzielx<=character[1].x+2)){gzielx=character[1].x;}
if((gziely>=character[1].y-2)&&(gziely<=character[1].y+2)){gziely=character[1].y;}
// --------- strikes ---------
if((character[1].View==1)||(character[1].View==4)){
if((character[1].y>cEgo.y-15)&&(character[1].y<cEgo.y+15)){
a=Random(1);
if((character[1].x>cEgo.x+60)&&(character[1].x<cEgo.x+160)){
gzielx=character[1].x;gziely=character[1].y;
character[1].FaceCharacter(cEgo);
if (a==0) {gschlag="links"; character[1].ChangeView(2);} // normal strike left
if (a==1) {gschlag="links"; character[1].ChangeView(3);}} // upper strike left
if((character[1].x<cEgo.x-60)&&(character[1].x>cEgo.x-160)){
gzielx=character[1].x;gziely=character[1].y;
character[1].FaceCharacter(cEgo);
if (a==0) {gschlag="rechts"; character[1].ChangeView(2);} // normal strike right
if (a==1) {gschlag="rechts"; character[1].ChangeView(3);}} // upper strike right
}
}
//--------- normal view after strike animation
if((character[1].View==2)||(character[1].View==3)&&(character[1].Frame==4)){
character[1].ChangeView(1);
}
// ----- character looks either left or right ------------
if ((!player.Moving)&&((character[1].View==1)||(character[1].View==4))) {
if (character[1].Loop == 1 && character[1].NormalView != LEFT) character[1].ChangeView(LEFT);
if (character[1].Loop == 2 && character[1].NormalView != RIGHT) character[1].ChangeView(RIGHT);
}
// -------- strike animations are played -------------
if(gschlag!=""){
if(gschlag=="links"){character[1].Animate(1, 2, eOnce, eNoBlock);}
if(gschlag=="rechts"){character[1].Animate(2, 2, eOnce, eNoBlock);}
gschlag="";
}
Quote from: ShadowRifter666 on Mon 02/02/2009 03:13:32
you say put theCode: ags character.Visible = false
at the beginning, where would be the beginning
Quote from: ShadowRifter666 on Mon 02/02/2009 03:13:32
[...] and would the code apply to all 6 characters, and what is the code to select one character to appear and become the main character
Quote from: ShadowRifter666 on Sun 01/02/2009 21:32:06
i just need to now remove the class select GUI that appears first and remove the characters that appear onscreen before the character is selected.
Quote from: Mods on Sun 01/02/2009 15:28:34
Maybe it's just me or do some marketting campaigns take people for absolute fools?
Quote from: SSH on Fri 30/01/2009 14:27:05Quote from: Buckethead on Fri 30/01/2009 10:40:45No-one has a hard disk die... until they do
And I really don't see why I should back up my entire harddisk. I've never had a situation where I suddenly lost it all.
Quote from: Raider on Thu 29/01/2009 05:15:14
Also do you think the 2nd largest pyramid looks odd in its angle?
Quote from: teenage_musings on Sat 31/05/2008 12:01:26
thank you!
I found it XD just goes to show how careful you have to be in AGS, I forgot 1 bracket and it screwed my whole game up ><"
Quote from: Rentin on Wed 28/01/2009 23:24:22
Like I said above, I think they got resized when I uploaded to flickr to post them on here. Normally I use photobucket but it just hasnt been working for me lately. The backgrounds are really 640X480.
Quote from: jakerpot on Wed 28/01/2009 16:00:08
he don't get a trophy
Quote from: woot52 on Tue 27/01/2009 22:22:18Quote from: matti on Tue 27/01/2009 22:06:15sorry it was more of an accident that I posted twice
Also, please don't start several threads with the same content. And note that capital letters don't make the thread look important.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.136 seconds with 15 queries.