The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Sequential Looping Script
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#1
Sequential Looping Script

All righty, so here's the deal:

I'm putting together a quick little credits sequence, using the SetMessage function (I find that it looks nicer than gimping/photoshopping them), and it's not really turning out. There are five messages altogether.

void ToBlack(string &in asTimer)
{
    FadeOut(5);
    TeleportPlayer("PlayerStartArea_11");
    
    AddTimer("", 5, "CreditsRoll");
}

void CreditsRoll(string &in asTimer)
{
    for(int i = 1; i <= 5; i++) {
        FadeIn(5);    
        SetMessage("Messages", "credits_"+i, 5);
        AddLocalVarInt("Roll", 1);
        
        if (GetLocalVarInt("Roll") == 5)
             {
                RemoveTimer("CreditsRoll");
             }
            }
            
    AddTimer("", 5, "CreditsRoll");
}

Each message is named credits_1 and is sequential, but for the life of me, it's just not coming together, and I betcha it's an easy fix too. -.-

08-22-2015, 11:43 AM
Find


Messages In This Thread
Sequential Looping Script - by AGP - 08-22-2015, 11:43 AM
RE: Sequential Looping Script - by Mudbill - 08-22-2015, 12:38 PM
RE: Sequential Looping Script - by AGP - 08-22-2015, 07:07 PM



Users browsing this thread: 1 Guest(s)