MODULE: Smooth Scrolling & Parallax v1.7.1

Started by Ali, Fri 07/12/2007 21:14:09

Previous topic - Next topic

Crimson Wizard

#200
Quote from: my2k on Tue 16/03/2021 05:55:28
so I don't know if this has been addressed, this is as close as I've seen, but:
when I'm moving and the screen is smooth-scrolling, if I click on a character and dialogue begins, the dialogue scrolls along with the room- not the gui, not anything else, JUST the drawn "character.SayAt(etc);" type dialogue.

Please tell which speech style you are using (and which version of AGS)? For instance, afaik Lucas Arts speech style locks to particular room position to be above character, so when the camera moves it will move along the room background.

EDIT:
But I don't remember if same happens with SayAt.
I also don't think this is supposed to happen with Sierra style speech. Only have vague memories hearing about some issue years ago.

Ali

I've never used Sierra style speech, and frankly I don't know how to set it up (the Sierra template in AGS 2.5 seems to use LucasArts style speech and switching on SierraWithBackground doesn't seem to do anything...). So I haven't managed to test the dialogue and GUI going out of alignment with each other.

However, I'm not sure the module has control over this issue. SayAt uses screen, rather than room co-ordinates. But (as CW says) AGS pins the text to the background, so if the viewport scrolls the text moves along with it. Presumably because it would usually be attached to a speaker. As far as I know, a module can't make SayAt behave differently.

Akril15

I've got a scrolling room that's 1906 pixels wide (in AGS 3.6.1) in which my player character first appears in at 1232, 319. The problem is that I can't seem to get the module to stay centered on the character when the room loads. I have this in the room load script:
Code: ags
targetCharacter=player;
SmoothScroll_ScrollingOn();

But when the room loads, the camera starts out over on the left side of the room, then pans over to the player character's position. What am I doing wrong?

Ali

It sounds like the targetCharacter might be set to someone else on entering the room. So when scrolling is turned on, it has to move from the old to the new target.

Can you try setting targetCharacter=player; before calling ChangeRoom in the previous script?

Akril15


SMF spam blocked by CleanTalk