can't change room after credit-like info

Started by passer-by, Sun 15/05/2005 18:49:46

Previous topic - Next topic

passer-by

I use credits plugin inside the game, to give some info , not for ending the game, but I can't change room after the scrolling ends. Nothing works after scrolling , I put player.ChangeRoom etc and I even tried to put an object after scrolling but the object or whatever I tried is on from the beginning and palyer changes room immediately after they enter the screen. I find info for static credits but didn't find any for scrolling ones.
Thanks

Ishmael

The credits plugin is a bit buggy, I see... There's no news of a new version, so we'll have to stick with this... There should be command for something like IsCreditFinished or something that you should be able to use to determine when the scrolling has ended...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

passer-by

Quote from: Ishmael on Sun 15/05/2005 20:01:02
The credits plugin is a bit buggy, I see... There's no news of a new version, so we'll have to stick with this... There should be command for something like IsCreditFinished or something that you should be able to use to determine when the scrolling has ended...

I put
Quote// script for Room: Player enters screen (after fadein)
ScrollCredits (1, 2, 100, 150, 1, 3, 2);
SetCredit (1,"blah blah...", 65503,3,1,50, 0);
SetCredit (3,"blah blah...", 65503,3,1,50, 0);
etc etc
SetEmptyLineHeight (50);
IsCreditScrollingFinished ();
ScrollCredits (1, 2, 100, 150, 1, 3, 2);Ã,  Ã, if I don't put that one it pauses at line 5 or so and doesnt show the whole text.
}
and then problems start
I cant find what to put after that one
The most convenient would be to switch on an arrow or something after the text, so that the player can go to next room, unless I can have something else with less scriptingÃ,  :-\


Ishmael

Add

function repeadetly_execute() {
  if (IsCreditScrollingFinished() == 1) {
    NewRoom(##);
  }
}

into the roomscript, replacing ## with the next room number, and remove the IsCreditScrollingFinsihed(); from the Player enters screen function, it should work.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

passer-by

Thanks, it worked.
It took some seconds and gave a black screen first , I thought it crashed again, but it took me to the other room.

SMF spam blocked by CleanTalk