This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:guides:beginners:running_and_standing [2020/08/19 12:17 (5 years ago)] – Removed obsolete paragraph iarwain | en:guides:beginners:running_and_standing [2024/11/18 04:18 (4 months ago)] (current) – Highlights sausage | ||
---|---|---|---|
Line 5: | Line 5: | ||
He needs to be able to stand still when not running. To do this, we need to add an idle animation. | He needs to be able to stand still when not running. To do this, we need to add an idle animation. | ||
- | An idle animation would be simply playing hero frame 1 from the spritesheet over and over. Let's create a '' | + | An idle animation would be simply playing hero frame 1 from the spritesheet over and over. Let's create a '' |
- | < | + | < |
[HeroAnimationSet] | [HeroAnimationSet] | ||
Texture = soldier_full.png | Texture = soldier_full.png | ||
Line 32: | Line 32: | ||
Add all the possible links to '' | Add all the possible links to '' | ||
- | < | + | < |
[HeroAnimationSet] | [HeroAnimationSet] | ||
Texture = soldier_full.png | Texture = soldier_full.png | ||
Line 54: | Line 54: | ||
When the right key is pressed, the run animation,'' | When the right key is pressed, the run animation,'' | ||
- | < | + | < |
if (orxInput_IsActive(" | if (orxInput_IsActive(" | ||
{ | { | ||
Line 84: | Line 84: | ||
That takes care of running and stopping while facing right. But what about left? | That takes care of running and stopping while facing right. But what about left? | ||
- | Let try that now. | + | Let' |
---- | ---- |