View unanswered posts | View active topics It is currently Fri Jan 10, 2025 12:13 am



Reply to topic  [ 7 posts ] 
 Actor making 
Author Message

Joined: Tue Apr 28, 2009 1:58 am
Posts: 18
Reply with quote
Post 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


Fri May 08, 2009 1:13 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Fri May 08, 2009 1:17 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Actor making
Try making the Coat part an attachable.


Fri May 08, 2009 2:03 am
Profile WWW

Joined: Tue Apr 28, 2009 1:58 am
Posts: 18
Reply with quote
Post 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


Fri May 08, 2009 3:13 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 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.


Fri May 08, 2009 4:18 am
Profile WWW

Joined: Tue Apr 28, 2009 1:58 am
Posts: 18
Reply with quote
Post 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 :P



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?


Fri May 08, 2009 5:01 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Actor making
What is the exact error?
It's possible that it's looking for the wrong file...


Sat May 09, 2009 2:53 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.047s | 14 Queries | GZIP : Off ]