Data Realms Fan Forums http://45.55.195.193/ |
|
Actor making http://45.55.195.193/viewtopic.php?f=1&t=14532 |
Page 1 of 1 |
Author: | irregular9 [ Fri May 08, 2009 1:13 am ] |
Post subject: | Actor making |
Hi... do anybody know how can i do to make the front leg to be behind the body? because i want to make an actor that uses a coat, so the front leg must be down the coat, but i cant figure how to do it, i saw that command "DrawAfterParent =" but i cant make it work |
Author: | Duh102 [ Fri May 08, 2009 1:17 am ] |
Post subject: | Re: Actor making |
DrawAfterParent = 0 means the sprite is drawn before the parent bit, so behind. DrawAfterParent = 1 means the sprite is drawn after, meaning over. |
Author: | zalo [ Fri May 08, 2009 2:03 am ] |
Post subject: | Re: Actor making |
Try making the Coat part an attachable. |
Author: | irregular9 [ Fri May 08, 2009 3:13 am ] |
Post subject: | Re: Actor making |
its kinda dificult for me to do that, ill try it, but... its the very first time i made a mod for CC. I'll try it and post a result |
Author: | zalo [ Fri May 08, 2009 4:18 am ] |
Post subject: | Re: Actor making |
It's actually very simple. Code: AddEffect = Attachable PresetName = Coattail Mass = 2 Sharpness = 0.1 HitsMOs = 0 GetsHitByMOs = 1 SpriteFile = ContentFile FilePath = *YourMod*.rte/*TheIsolatedCoatSprite*.bmp FrameCount = 1 SpriteOffset = Vector X = -*Half of the width of the sprite (In Pixels)* Y = -*Half of the height of the sprite (In Pixels)* AngularVel = 60 AtomGroup = AtomGroup AutoGenerate = 1 Material = Material CopyOf = Grass Resolution = 4 Depth = 0 DeepCheck = 1 JointStrength = 5000 JointStiffness = 0.6 JointOffset = Vector X = 0 Y = 0 Joint offset is where on the coattail it connects to the actor. Then, inside the actual actor part of the code, put: Code: AddAttachable = Attachable CopyOf = Coattail ParentOffset = Vector X = 2 Y = 7 This is where on the actor the coattail appears. That basically makes the it appear on the actor 2 pixels to the left (when the actor is facing right), and 7 pixels down. Replace all the things in the asterisks (Leave the "-" on the sprite offset part). Also, copy/pasting it will work fine. But you have to change the stuff in the asterisks. |
Author: | irregular9 [ Fri May 08, 2009 5:01 pm ] |
Post subject: | Re: Actor making |
zalo wrote: It's actually very simple. Code: AddEffect = Attachable PresetName = Coattail Mass = 2 Sharpness = 0.1 HitsMOs = 0 GetsHitByMOs = 1 SpriteFile = ContentFile FilePath = *YourMod*.rte/*TheIsolatedCoatSprite*.bmp FrameCount = 1 SpriteOffset = Vector X = -*Half of the width of the sprite (In Pixels)* Y = -*Half of the height of the sprite (In Pixels)* AngularVel = 60 AtomGroup = AtomGroup AutoGenerate = 1 Material = Material CopyOf = Grass Resolution = 4 Depth = 0 DeepCheck = 1 JointStrength = 5000 JointStiffness = 0.6 JointOffset = Vector X = 0 Y = 0 Joint offset is where on the coattail it connects to the actor. Then, inside the actual actor part of the code, put: Code: AddAttachable = Attachable CopyOf = Coattail ParentOffset = Vector X = 2 Y = 7 This is where on the actor the coattail appears. That basically makes the it appear on the actor 2 pixels to the left (when the actor is facing right), and 7 pixels down. Replace all the things in the asterisks (Leave the "-" on the sprite offset part). Also, copy/pasting it will work fine. But you have to change the stuff in the asterisks. Man!! Thank you so much!! Ill do that ^^. so let's paint Ho well... i understand that code, I did replaced what i needed but... it gives me an error on the "FrameCount line". so. any idea? |
Author: | 411570N3 [ Sat May 09, 2009 2:53 pm ] |
Post subject: | Re: Actor making |
What is the exact error? It's possible that it's looking for the wrong file... |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |