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 revision Previous revision
en:guides:beginners:jelly_monsters [2018/02/14 04:47 (7 months ago)]
iarwain ↷ Links adapted because of a move operation
en:guides:beginners:jelly_monsters [2018/06/28 12:39 (3 months ago)] (current)
sausage In line with init projects
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 63: 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 78: Line 78:
 </​code>​ </​code>​
  
-And add "monster" ​to 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 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.txt · Last modified: 2018/06/28 12:39 (3 months ago) by sausage