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
en:guides:beginners:jelly_monsters [2018/02/13 20:47 (8 years ago)] – ↷ Links adapted because of a move operation iarwainen:guides:beginners:jelly_monsters [2024/11/19 02:30 (10 months ago)] (current) – Highlights sausage
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>
Line 23: Line 23:
 Graphic      = MonsterGraphic Graphic      = MonsterGraphic
 AnimationSet = MonsterAnimationSet AnimationSet = MonsterAnimationSet
-Position     = (9090, 0)+Position     = (-310-210, 0)
 Scale        = 2.0 Scale        = 2.0
 </code> </code>
Line 43: Line 43:
 Just so you can see the monster working... add a MonsterObject to the Scene childlist: Just so you can see the monster working... add a MonsterObject to the Scene childlist:
  
-<code=ini>+<code=ini [highlight_lines_extra="5"]>
 [Scene] [Scene]
 ChildList = PlatformObject # MiddlePlatformObject # ChildList = PlatformObject # MiddlePlatformObject #
Line 59: Line 59:
 Last job is to give the monster a body and ensure he collides with platforms, bullets, and our hero: Last job is to give the monster a body and ensure he collides with platforms, bullets, and our hero:
  
-<code=ini>+<code=ini [highlight_lines_extra="6"]>
 [MonsterObject] [MonsterObject]
 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 78: 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 [highlight_lines_extra="5"]>
 [PlatformBodyPart] [PlatformBodyPart]
 Type        = box Type        = box
Line 88: 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|}}
en/guides/beginners/jelly_monsters.1518583677.txt.gz · Last modified: 2018/02/14 00:47 (8 years ago) (external edit)