what aditions do i make tothe globle script, i have read the text doc but i've done most of the game and i'm not 100% sure and don't want to screw the game up getting it wrong! :-[
also my game has flic, wave and midi' files do any need to be in the compiled folder
thanks para
As for your second question:
As far as I know, flic, WAV and MIDI files are compiled into the game, so you only have to put them into the game folder.
Quote from: Paranoia on Sat 13/09/2003 10:11:19
what aditions do i make tothe globle script, i have read the text doc but i've done most of the game and i'm not 100% sure and don't want to screw the game up getting it wrong! :-[
Yeah, making a looping room requires a specifically made background (see AGS Demo game for details).
Anyway the script is:
EDIT: to make it work at any resolution:
function room_*() { // script for room: Repeatedly execute int GPC = GetPlayerCharacter();
int room_res_x = 320;
if (system.screen_width > 320) room_res_x = system.screen_width/2;
if (character[GPC].x > game.room_width - room_res_x/2) {
StopMoving(GPC);
character[GPC].x = room_res_x/2;
}
else if (character[GPC].x < room_res_x/2) {
StopMoving(GPC);
character[GPC].x = game.room_width - room_res_x/2;
}
}
But make sure you
backup the game before importing such a background as it has a size different than the original and thereby erases all your previously made walkables/hotspots etc.
~Cheers
thanks ThunderStorm, just wanted to be sure ;D
thanks Scorpiorus i'll have a go and see what happens!
cheers