Page 1 of 2

[HELP!] Code for animating

Posted: Sat Oct 05, 2013 8:40 pm
by IKnowRight
Can someone quickly right up some good that will make scp-173 play a 5 frame, 1fps animation named "Animation" Constantly? I need it to advance in a mod i'm working on.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 12:35 am
by mrpeanut188
IKnowRight wrote:Can someone quickly right up some good that will make scp-173 play a 5 frame, 1fps animation named "Animation" Constantly? I need it to advance in a mod i'm working on.
You need to use the function Animate2().
Function Animate2(ent%, curr#, start%, quit%, speed#, loop=True)

Animate2(Curr173\Collider, AnimTime(Curr173\Collider), start%, quit%, 0.03, true)

Replace the start% with the starting frame, and quit% with the end frame. You can find the frame #s in fragMOTION.
Now, to make him play the animation, just make that code play every second, so somewhere within the Main Loop contained in Main.bb

Hope I helped.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 10:55 am
by InnocentSam
What about the code for 173's head? I looked around for how it turns it's head to the player but couldn't find it.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 11:39 am
by Nightmare Tank
InnocentSam wrote:What about the code for 173's head? I looked around for how it turns it's head to the player but couldn't find it.
I actually couldn't notice this on v0.8.1 anymore...I wonder if it got omitted, but every time The Sculpture moves to where it could turn its head, it doesn't. It just looks straight ahead. Even if I'm on a higher or lower plane to it.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 12:50 pm
by InnocentSam
Nightmare Tank wrote:
InnocentSam wrote:What about the code for 173's head? I looked around for how it turns it's head to the player but couldn't find it.
I actually couldn't notice this on v0.8.1 anymore...I wonder if it got omitted, but every time The Sculpture moves to where it could turn its head, it doesn't. It just looks straight ahead. Even if I'm on a higher or lower plane to it.
Could be why I couldn't find the code. I'll check older versions.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 1:01 pm
by Nightmare Tank
InnocentSam wrote:Could be why I couldn't find the code. I'll check older versions.
It did on v0.7.4 right? There should be some mods in here layin' around for that version, so it shouldn't be too hard.

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 4:57 pm
by Cridone
InnocentSam wrote:What about the code for 173's head? I looked around for how it turns it's head to the player but couldn't find it.
DISTORTION!!!!!!!!
Image
Image
Image
Image

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 5:13 pm
by Nightmare Tank
Is it just me, or does The Sculpture have two mouths? There's one that looks like a bit of a snarl, gritting its teeth, and then the one below it which is a kinda grin...

Also, didn't the pony in your propic have more apparel than that Cridone?

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 5:39 pm
by Cridone
Nightmare Tank wrote:.
yes

Re: [HELP!] Code for animating

Posted: Sun Oct 06, 2013 8:42 pm
by InnocentSam
Cridone wrote:
InnocentSam wrote:What about the code for 173's head? I looked around for how it turns it's head to the player but couldn't find it.
snippy wippy
We meant in the code. The clue is in the title of the thread.