Blood Drip Effect? - 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: Blood Drip Effect? (/thread-16183.html) |
Blood Drip Effect? - DaAinGame - 06-16-2012 Remember that first level of Amnesia where the petals fell from the ceiling? Well I want to redo that except using blood. Only problem, is I've never worked with particle systems before and my level editor has a tendency to crash whenever I look for particles/materials/decals etc. so I have to get them manually. I've searched on youtube, google, and did a forum search and found no tutorials on how to do it, which also leaves me to ask; is it even possible? This is not a very important item, and can be skipped over, but it would be pretty nice to add something like this to my story. Thanks in advanced! ***EDIT*** I found the particle system I want to use, but how can I set it on a loop? To where a drop of blood falls maybe like, every 5 seconds or so? Right now it drips once as soon as the map starts up and that's it. RE: Blood Drip Effect? - Bridge - 06-16-2012 Can you #include headers? If so, download windows.h and use the Sleep() function, and put it in a while(true) loop. Like: Code: while(true) { Don't know how well that would work in Amnesia though. RE: Blood Drip Effect? - Your Computer - 06-16-2012 Edit the particle system and have it respawn after death. (06-16-2012, 01:56 AM)Bridge Wrote: Can you #include headers? If so, download windows.h and use the Sleep() function, and put it in a while(true) loop. Like: Sleep halts the program completely for the time specified. Thankfully, we do not have access to that function. RE: Blood Drip Effect? - DaAinGame - 06-16-2012 (06-16-2012, 01:56 AM)Bridge Wrote: Can you #include headers? If so, download windows.h and use the Sleep() function, and put it in a while(true) loop. Like:I'm confused by your post, but if I understand that correctly, it won't work, because the engine only reads Angel Script? RE: Blood Drip Effect? - Putmalk - 06-16-2012 Check archives.hps and see how they did it. RE: Blood Drip Effect? - DaAinGame - 06-16-2012 Oh DUH! Such a simple thing to do, yet something I wouldn't think of. It creates the effect, then adds a timer of like, 2 seconds. The timer then callbacks the exact same function, thus putting it into an infinite loop. Thanks for pointing that out Putmalk! +1 for you. RE: Blood Drip Effect? - Bridge - 06-16-2012 (06-16-2012, 02:38 AM)Your Computer Wrote: Edit the particle system and have it respawn after death.Yeah, I realized that last night. Never used it for any particular reason, just remembered hearing about it. |