Hi everyone. I sent pm to him but i couldn't be sure about getting answer maybe he won't login to forum for a while and i wanted to ask you my problem in SSH's Shadow module. When i tried it with creating a new game it worked well. I just had room1 and 800x600 background image with Roger character.
But when i tried it another project which has room 1 ( just intro - animation script [ character
- .animate bla bla ] ) and room2 which we should navigate our character on and which has 1024x768 resolution . But game closes and ags editor gives an error as soon as the game opens.
Now i'm going to give you the lines and error messages ;
In the line which is marked with yellow color by AGS to show where the mistake is , we have this code .
bgds.DrawImage(this.lastx, this.lasty, this.cache[width].Graphic, this.Transparency);
And another line which ags gives an error on ;
Shadow.rep_ex();
And both of 'em has the same error message ;
Error running function 'repeadetly_execute_always'; Error: Array index out of bounds (index : 550 ,bounds : 0..199)
Edit : Everyone i undestood that the problem is in the room which has animations , it was writtin in the module . ash . But i think i need to disable the module in that room so it says use this function ;
function Shadow.Disable(Character *who);
but when i do like this ;
function Shadow.Disable(Character *cLog); {
}
it gives an error says ;
Variable ' Shadow ' is already imported , how can i fix this ?
I haven't used this module, but it sounds to me like you should be calling:
Shadow.Disable(cLog);
Without the word 'function', which is used when creating the function but not when calling it, and replacing 'Character *who' with cLog.
Thank you very very much , it worked :) . Thanks again :).