Cut scene and other miscellaneous questions.

Started by anguruso, Sun 19/04/2009 10:16:23

Previous topic - Next topic

anguruso

First I'd like to say that this AGS stuff is really great and it reminds me a lot of Visual Studio.

Anyway, I'd like to create a cut scene that takes place after speaking to a character.  The character walks off into a building, disappears for a moment, then returns with two bags of money in his hands. He then gets into his Ferrari and storms off.

So basically I need to:
-Speed up the Ferrari movement, because at the moment it isn't dramatic enough
-Make some action take place after some dialogue, so after choosing one topic of discussion the above described scene should take place
- Make a character disappear, when the character goes into the building.
- Change a character's view, when the character returns with two bags of money in his hands.

vaultdweller

These are all basic things you can find in the AGS documentation. Have a look at the "run-script" function that runs a script during the dialog, than at the "ChangeView" function for changing the characters view and use the same for making the character disappear. As for the Ferrari, you can make it a character and than just set the speed of the character. To adjust the speed, use the "SetWalkSpeed" function. Look it up in the documentation (just press F1). Good luck.

anguruso

Thanks, I'll take a look at those things now.

anguruso

I was thinking about how to make it appear as if a character has entered a building. Right now I'm thinking about making a blank VIEW and when the character reaches the building change his view to the blank view. Then after some time, say 5 seconds change his view once again.

What do you think?

Matti

If it's possible in you scene, use a walkbehind to make the character disappear in the building.. and you could use an object for a door and animate it..

anguruso

Nice idea, but I can't really make the character disappear through a walk behind, since I want him to go into a building the EGO goes into.

Quote
@4
BALLER: Aight, I got shit to do too.
  cBaller.Walk(572, 503);
  cBaller.ChangeRoom(1);
stop

That's the code I've got so far, it doesn't do what I want it to. The character doesn't walk, instead after choosing Dialogue #4, the character just disappears from the screen. So I tried this:

Quote
@4
BALLER: Aight, I got shit to do too.
  cBaller.Walk(572, 503);
  while(!cBaller.Animating)
{
}
  cBaller.ChangeRoom(1);
stop

However that produced a runtime error since an 'infinite loop' was detected.

GarageGothic

#6
You need to use the eBlock parameter in the Walk function, i.e. "cBaller.Walk(572, 503, eBlock);", otherwise the script will directly proceed to the next line instead of finishing the walk first. Also, the correct usage in your second example (but DO use the blocking walk instead, this is just to inform you) would be:

Code: ags
while (cBaller.Moving) Wait(1);

anguruso


SMF spam blocked by CleanTalk