Frictional Games Forum (read-only)
Need some help ! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Need some help ! (/thread-11836.html)

Pages: 1 2


Need some help ! - narutohokager - 12-13-2011

Hi hi hi Big Grin
So I have two problems :
First : FadeSepiaColorTo(5,1); Not working ! He do anything...
Second :
Not really a problem... Hard to explain because i'm french.
I'm looking for a sound of a monster/creature that goes really fast (Like 2-3 seconds) Dont know where i can found this Undecided
Thank a lot Shy



RE: Need some help ! - Statyk - 12-14-2011

1) FadeSepiaColorTo(5, 1); //You needed a space between "5,_1"

2) go into the main folder, go to the "sounds" folder. Then "enemy". And search in the monster sound that you would like. Preference is up to you.



RE: Need some help ! - nemesis567 - 12-14-2011

Statyk, does the space make a difference in AngelScript?



RE: Need some help ! - Statyk - 12-14-2011

(12-14-2011, 01:46 AM)nemesis567 Wrote: Statyk, does the space make a difference in AngelScript?
It could. Everything else is fine about it. Even in normal speech, a space is necessary after commas for proper grammar. I have always put a space, as well as everyone else, so it COULD.



RE: Need some help ! - Your Computer - 12-14-2011

The compiler normally doesn't care about spaces and tends to remove them before parsing. Putting a space there is normally done for making the script easier to read for others. If the function isn't working, then we're going to need to see more of the entire script.


RE: Need some help ! - nemesis567 - 12-14-2011

(12-14-2011, 04:59 AM)Your Computer Wrote: The compiler normally doesn't care about spaces and tends to remove them before parsing. Putting a space there is normally done for making the script easier to read for others. If the function isn't working, then we're going to need to see more of the entire script.
I though so. I think the problem might be related to the way he calls that function. Please post the script which includes the part where that function is called.




RE: Need some help ! - narutohokager - 12-15-2011

(12-14-2011, 01:31 AM)Statyk Wrote: 1) FadeSepiaColorTo(5, 1); //You needed a space between "5,_1"
Its still not working ! Undecided FadeSepiaColorTo(15, 1); Maybe I need to put a figure greater than 15 ?
Your Computer : Here script :
Quote: void CollideAreaPortrait(string &in asParent, string &in asChild, int alState)
{
AddTimer("TimerFadeIn", 1.5f, "FadeInGuardien");
FadeOut(0.1f);
}
void FadeInGuardien(string &in asTimer)
{
FadeIn(0.05f);
StartScreenShake(0.1f,1, 0.5f,0.5f);
FadeSepiaColorTo(15, 1);
SetPlayerActive(true);
}





RE: Need some help ! - Your Computer - 12-15-2011

(12-15-2011, 09:45 PM)narutohokager Wrote: Your Computer : Here script :

That's not enough to help you.


RE: Need some help ! - palistov - 12-15-2011

Spaces between arguments or parameters aren't necessary, from my experience. They are needed in some places, like between the function type and its name. voidYourFXN(param1, param2) would definitely cause an issue.

narutohokager: Try using a value less than 1. I'm not sure if the function works with such high values.

FadeSepiaColorTo(0.2f, 1.0f); <-- see if that works.


RE: Need some help ! - Karai16 - 12-16-2011

As-tu déja résolu le problem avec l'audio ou le script?