User Tools

Site Tools


en:guides:beginners:timeline_tracks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guides:beginners:timeline_tracks [2015/12/06 12:10 (8 years ago)] – external edit 127.0.0.1en:guides:beginners:timeline_tracks [2018/06/28 08:46 (6 years ago)] (current) – external edit 127.0.0.1
Line 27: Line 27:
 <code=ini> <code=ini>
 [MonsterObject] [MonsterObject]
-Graphic      = MonsterGraphic1+Graphic      = MonsterGraphic
 AnimationSet = MonsterAnimationSet AnimationSet = MonsterAnimationSet
-Position     = (200, 0) ~ (6000, 0)+Position     = (-380-300, 0) ~ (200-200, 0)
 Scale        = 2.0 Scale        = 2.0
 Body         = MonsterBody Body         = MonsterBody
Line 53: Line 53:
 <code=ini> <code=ini>
 [MonsterObject] [MonsterObject]
-Graphic      = MonsterGraphic1+Graphic      = MonsterGraphic
 AnimationSet = MonsterAnimationSet AnimationSet = MonsterAnimationSet
-Position     = (200, 0) ~ (6000, 0)+Position     = (-380-300, 0) ~ (200-200, 0)
 Speed        = (-20, 0, 0) ~ (20, 0, 0) Speed        = (-20, 0, 0) ~ (20, 0, 0)
 Scale        = 2.0 Scale        = 2.0
 Body         = MonsterBody Body         = MonsterBody
 + 
 [MonsterBody] [MonsterBody]
 Dynamic            = true Dynamic            = true
 PartList           = MonsterBodyPart PartList           = MonsterBodyPart
-AllowGroundSliding false +AngularDamping     50 
-AngularDamping     = 5+LinearDamping      = 0.2 
 +  
 +[MonsterBodyPart] 
 +Type        = box 
 +Solid       = true 
 +SelfFlags   = monster 
 +CheckMask   = hero # platforms # bullet 
 +Friction    = 0 
 +Restitution = 0.2 
 +Density     = 20
 </code> </code>
  
-This will give the monsters a little left/right movement (speed) and stop them from slipping along the floor (AllowGroundSliding)Also stops them from flipping over so much (AngularDamping).+The ''Speed'' on the object will give the monsters a little random left/right movement. The ''Friction'' on the bodypart will make the monster less slippery on the ground 
 + 
 +The ''LinearDamping'' on the body will slow him down a little over time if he's too fast. The high ''AngularDamping'' will ensure the monster tips over the edge but not rotate and tumble wildly. 
 + 
 +Finally, a touch of ''Restitution'' on the body will allow it to bounce just a touch when landing from a height.
  
 That should work a little better. That should work a little better.
Line 73: Line 86:
 ---- ----
  
-Next: [[guides:beginners:exploding_monsters|Part 18 – Exploding Monsters]].+Next: [[en:guides:beginners:exploding_monsters|Part 18 – Exploding Monsters]]. 
 + 
 +{{section>en:guides:beginners:toc&noheader&nofooter&noeditbutton}}
en/guides/beginners/timeline_tracks.1449432655.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)