Animated Title Screen?

Miru said:
TMNT Shell Shock has one, so it’s possible.
it's not a simple animated gif, its using drawsprite script

You can do it using script. Its not hard, but you need to understand how script works first http://www.chronocrash.com/forum/index.php?topic=3137.0
Another option: http://www.chronocrash.com/forum/index.php?topic=3406.0
 
O Ilusionista said:
Miru said:
TMNT Shell Shock has one, so it’s possible.
it's not a simple animated gif, its using drawsprite script

You can do it using script. Its not hard, but you need to understand how script works first http://www.chronocrash.com/forum/index.php?topic=3137.0
Another option: http://www.chronocrash.com/forum/index.php?topic=3406.0

Thanks man, I'll check it out
 
use this:
Code:
void main() {
    int counter = getlocalvar("counter"); // Retrieve the counter variable
    
    if (openborvariant("in_menuscreen")) { // Check if the game is in menu screen
        setlocalvar("counter", 0); // Reset the counter
    }

    if (openborvariant("in_titlescreen") && (counter != 1)) { // Check if in title screen and avoid double spawn
        void subent;
        setlocalvar("counter", 1); // Set the counter to block new spawns

        // Load the entity model and sound
        loadmodel("bfx");
        int SFX1 = loadsample("data/sounds/heros.wav");

        // Prepare and spawn the entity
        clearspawnentry();
        setspawnentry("name", "bfx");       // Define entity name
        setspawnentry("coords", 0, 490, 0); // Set spawn position
        subent = spawn();                   // Spawn the entity

        // Set entity properties (if needed)
        changeentityproperty(subent, "position", 0, 490, 0); // Optional redundancy for safety
        changeentityproperty(subent, "direction", 1);        // Ensure direction is set

        // Play the sound effect
        playsample(SFX1, 0, 120, 120, 100, 0); // Play the loaded sound
    }
}

its "updated.c" file, it needs to be in scripts folder.
will play bfx entity and will play its spawn or idle if yoy wont use spawn animation
 
Last edited:
Miru said:
TMNT Shell Shock has one, so it’s possible.

That’s not an animated gif like the ones using on intro like the OP is asking.
Shell Shock creates the animation using different gif files.

Also I don’t want to sound like an a##, but the OP should get more familiar with the engine (and specially read the manual) before getting into scripts IMO.
 
Back
Top Bottom