Frictional Games Forum (read-only)
Video Tutorials [OMG ELEVEN!!!!] - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: Video Tutorials [OMG ELEVEN!!!!] (/thread-7608.html)

Pages: 1 2 3 4 5 6 7 8 9


RE: Video Tutorials [OMG ELEVEN!!!!] - laser50 - 06-20-2011

Simpanra, could you make a tutorial on how to use Custom models on your custom story? It would help me Big Grin


RE: Video Tutorials [OMG ELEVEN!!!!] - christopher231 - 07-18-2011

Hey can you make a video about how to make a lever open a secret door!! (if you haven't already) i have looked for it and i cant seem to find anything about how i am ment to do this!!!


RE: Video Tutorials [OMG ELEVEN!!!!] - Henriksen - 07-18-2011

May I request a tutorial on how to make .jpg pictures into planes in the level editor??? Smile




RE: Video Tutorials [FIRST VIDEO IS UP] - convolution223 - 07-18-2011

(04-25-2011, 04:33 PM)Dalroc Wrote: You should indent your code.. Especially if you are going to teach others to script.

I guess I could explain for you what the "string& asName", "float afTime", "string& asFunction" and all those mean.

Lets use your own tutorial as example.
In your AddEntityCollideCallback you have the parameters "Player", "RoomTwoArea" and "1".
In you CollideRoomTwo function you "import" these parameters with a new name you specify.

So
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
calls
CollideRoomTwo(string &in asParent, string &in asChild, int &in alState)
This means Player is now a variable named asParent inside of the CollideRoomTwo function, RoomTwoArea is named asChild and the 1 in stored inside an integer variable called alState.

Now this doesn't really change anything for this specific script, but it's good for doing a general function that you use several times for several different entities and locations (unlocking doors, ambient noises, levers).

Example, this code would unlock any door that calls it:
PHP Code:
void KeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);


I kinda guessed that, but didn't know for sure till I read what you said. I'm definitely going to try and use this kind of generalized function in my code. very helpful, thanks Smile


RE: Video Tutorials [OMG ELEVEN!!!!] - Jovismcp - 07-22-2011

Hi there, I've been looking around and haven't found any particularly helpful guides on playing sounds and music in the game via the level editor and .hps files, if anyone has a link to one that'd be great. Also, I've found your videos really useful Simpanra, I spoke to you before on youtube under the name 'sideburncorporation'. Anyhow, thanks all Smile


RE: Video Tutorials [OMG ELEVEN!!!!] - xtron - 07-22-2011

I'm creating some tutorials too and I don't know if Simpanra is still active on making tutorials :O.

I could contribute with some tutorials Smile.

Youtube name: Xtronism

I currently only got 1 but there will be more.