User Tools

Site Tools


en:guides:beginners:jelly_monsters

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:jelly_monsters [2015/12/06 12:10 (8 years ago)] – external edit 127.0.0.1en:guides:beginners:jelly_monsters [2018/06/28 08:39 (6 years ago)] (current) – external edit 127.0.0.1
Line 5: Line 5:
 {{ :guides:beginners:monster.png?nolink |}} {{ :guides:beginners:monster.png?nolink |}}
  
-Right click and save to the data/anim folder as "monster.png".+Right click and save to the ''data/texture'' folder in our project as "monster.png".
  
-Create graphics from the sprite sheet in the config:+Create a graphic from the sprite sheet in the config:
  
 <code=ini> <code=ini>
 [MonsterGraphic] [MonsterGraphic]
-Texture     = monster.png +Texture = monster.png 
-TextureSize = (32, 32, 0) +TextureOrigin = (0, 0, 0) ;required by the animation system for sizing. 
-Pivot       = center +TextureSize = (32, 32, 0) 
- +Pivot center
-[MonsterGraphic1@MonsterGraphic] +
-TextureCorner = (0,0,0) +
- +
-[MonsterGraphic2@MonsterGraphic] +
-TextureCorner = (32,0,0) +
- +
-[MonsterGraphic3@MonsterGraphic] +
-TextureCorner (64,0,0)+
 </code> </code>
  
Line 29: Line 21:
 <code=ini> <code=ini>
 [MonsterObject] [MonsterObject]
-Graphic      = MonsterGraphic1+Graphic      = MonsterGraphic
 AnimationSet = MonsterAnimationSet AnimationSet = MonsterAnimationSet
-Position     = (9090, 0)+Position     = (-310-210, 0)
 Scale        = 2.0 Scale        = 2.0
 </code> </code>
Line 39: Line 31:
 <code=ini> <code=ini>
 [MonsterAnimationSet] [MonsterAnimationSet]
-AnimationList = MonsterWobbleAnim +Texture = monster.png 
-LinkList      MonsterWobbleLoop+KeyDuration             = 0.1 
 +FrameSize = (32, 32, 0) 
 +MonsterWobbleAnim = -1 ;use the entire sheet 
 +StartAnim = MonsterWobbleAnim 
 +MonsterWobbleAnim-> = MonsterWobbleAnim 
 +Pivot center
  
-[MonsterWobbleAnim] 
-DefaultKeyDuration = 0.1 
-KeyData1           = MonsterGraphic1 
-KeyData2           = MonsterGraphic2 
-KeyData3           = MonsterGraphic3 
-KeyData4           = MonsterGraphic2 
- 
-[MonsterWobbleLoop] 
-Source      = MonsterWobbleAnim 
-Destination = MonsterWobbleAnim 
 </code> </code>
  
Line 76: Line 63:
 Graphic      = MonsterGraphic Graphic      = MonsterGraphic
 AnimationSet = MonsterAnimationSet AnimationSet = MonsterAnimationSet
-Position     = (9090, 0)+Position     = (-310-210, 0)
 Scale        = 2.0 Scale        = 2.0
 Body         = MonsterBody Body         = MonsterBody
Line 91: Line 78:
 </code> </code>
  
-And add "monsterto the PlatformBody so that collisions work on both object types:+And add ''monster'' to the ''PlatformBody'' so that collisions work on both object types:
  
 <code=ini> <code=ini>
Line 101: Line 88:
 </code> </code>
  
-Run it again and the monster should drop nicely onto a platform.+Run it again and the monster should drop down onto a platform.
  
 {{:guides:beginners:beginners-41-monster-gravity.png?nolink|}} {{:guides:beginners:beginners-41-monster-gravity.png?nolink|}}
Line 107: Line 94:
 ---- ----
  
-Next: [[guides:beginners:timeline_tracks|Part 17 – Timeline Tracks]].+Next: [[en:guides:beginners:timeline_tracks|Part 17 – Timeline Tracks]]. 
 + 
 +{{section>en:guides:beginners:toc&noheader&nofooter&noeditbutton}}
en/guides/beginners/jelly_monsters.1449432655.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)