Hi Gurtag!Gurtag said:hey ppl, is there a way to spawn decoration on select screen? like torchs for example?
if(openborvariant("in_titlescreen")){
clearlocalvar();
}
if(openborvariant("in_selectscreen")){
//Spawn Select Screen background
void counter = getlocalvar("selectCounter"); //Set a variable to trigger the spawn on and off
while(counter != 1){ //Check the variable to avoid double spawn
void subent;
clearspawnentry(); //clean the spawn entry
setspawnentry("name", "entity_name"); //define the entity to be spawn
subent = spawn(); //spawn the entity
changeentityproperty(subent, "position", 0, 0, 0);//for safe, set again the position
changeentityproperty(subent, "direction", 1); //set the direction
counter = setlocalvar("selectCounter", 1); //turn on the variable, blocking a new spawn to be made
}
}
Gurtag said:thanks a lot for all the help guys, sorry my ignorance but what is updated.c? i only have script.c with only a few spawn01 functions in it, should i create the updated.c file and past that script in it Kratus? after that past it on select.txt?
void main()
{
if(openborvariant("in_titlescreen")){
clearlocalvar();
}
if(openborvariant("in_selectscreen")){
//Spawn Select Screen background
void counter = getlocalvar("selectCounter"); //Set a variable to trigger the spawn on and off
while(counter != 1){ //Check the variable to avoid double spawn
void subent;
clearspawnentry(); //clean the spawn entry
setspawnentry("name", "entity_name"); //define the entity to be spawn
subent = spawn(); //spawn the entity
changeentityproperty(subent, "position", 0, 0, 0);//for safe, set again the position
changeentityproperty(subent, "direction", 1); //set the direction
counter = setlocalvar("selectCounter", 1); //turn on the variable, blocking a new spawn to be made
}
}
}
It was meSome time ago I got this script in the forum and I don't remember what is the autor
You can either use the tutorial above, or you can simply spawn it inside the characters wait animation using custentity or subent.hey ppl, is there a way to spawn decoration on select screen? like torchs for example?
Yes, now I remember! Is exactly in this post that I've learned how to make animated background in select screen. It's a fantastic job O Ilusionista. Thanks!!O Ilusionista said:It was meSome time ago I got this script in the forum and I don't remember what is the autorI've written a full tutorial here http://www.chronocrash.com/forum/index.php?topic=3137.0
You can use it for spawn animations in any screen with that method.
What is happening in the game? Is crashing and closing or the entity is not spawned? I think that the only mistake is about the name of "scripts.txt" file, the correct name is "script.txt", don't have the letter "s" in the end.Gurtag said:thanks guys, tryed several times but no luck so far, followed all the steps i belive, created de updated.c file, pasted the script in it with the entity name i want to spawn and set the coords, put the alwaysupdate 1 line on scripts.txt on data folder, even tryed several script vercions from ilu´s tutorial tread and also tried with otter entities but cant get them to spawn for some reason, i also added sound on entity anim to know if they spawned out of position but 0, nothing, any idea of what could i be doing wrong?
Kratus said:the name of "scripts.txt" file, the correct name is "script.txt", don't have the letter "s" in the end
Nice! Now, a little help to see if the "coords" are wrong, if you are using a resolution lower than 960x540 set the "video" option to 6 in the file "video.txt" and you can see where the entity is. After adjust the correct "coords", back the video option to your default resolutionGurtag said:Kratus said:the name of "scripts.txt" file, the correct name is "script.txt", don't have the letter "s" in the end
:that was it, my bad, i made select.gif all transparent but cant see the entity yet, tough i do hear the sound so it is there somewhere lol, will keep trying coord till it shows it´s ugly face ;D