Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 30/08/2003 15:41:29

Title: Scroller Problems
Post by: on Sat 30/08/2003 15:41:29
I'm making a Star Wars spoof game and my friend sent me a script to make the opening scroll made by SuperScottishHero. The script is:

1. A room with a starfield background and a continuously scaled walkable area (this example was 1 to 100% with the walkable area taking up 3/4 of the screen, vertically)
2. "Characters" for each line of text, with the views/sprites of the text to be scrolled as graphics with the perspective already applied (easy in PSP) (I have 4 lines here, characters 1 to 4)
3. This script:

$$$!$$$ ROOM room1.crm
$$$!$$$ RS
// room script file
int crawl=400;
int recip=84000;

function room_a() {
// script for room: Repeatedly execute
crawl+=1;
character[1].y=recip/crawl;
if (crawl >= 494) {
character[2].y = recip/(crawl-94);
character[2].room = 1;
}
if (crawl >= 588) {
character[3].y = recip/(crawl-188);
character[3].room = 1;
}
if (crawl >= 682) {
character[4].y = recip/(crawl-282);
character[4].room = 1;
}
if (character[1].y < 82) {
NewRoomEx(2, 160, 150);
}
}

The thing is, I can't figure out how to use it. My game is in 800x600 resolution, and the script says to change the numbers depending on your resolution (as the script above was written for 320x240) but no matter what I change, it won't work. What am I suppose to type and where am I supposed to type it?

Also, the characters (words) I'm using are 50 pixels high, so what do I need to change to take in that change?

Thanks
Title: Re:Scroller Problems
Post by: Scummbuddy on Sat 30/08/2003 16:44:39
Does your game have to be in 800 by 600?  Curse of Monkey Island wasn't even in that resolution, and look at what a beautiful game that was with extreme detail.
Title: Re:Scroller Problems
Post by: on Sat 30/08/2003 16:52:03
I know that just because the resolution is bigger it doesn't mean the game is any better (heck, my favourite graphic style ever is the Monkey Island one style - i love its pixelly goodness) but I really want this game to be in an 800x600 resolution.

I've got literally EVERY graphic, sprite and background ready for 800x600 and it would be really annoying having to convert it all (especially since 800 doesn't split easily into 640).

Is the resolution a problem for the script?