4th week, Controller was done! and new character design
Hi dude,
in the last week, We made some animations and new characters!
and the new character as the merchant!
and we got the dungeon test scene now!
last time, We began the refactoring to solve the complexity.
Unity (or another engine has the same thing, I guess) has the problem. each part (movement, animations, Mechanim) required the FSM.
For example,
- Player wants to move to the right side => the movement component moves the character to right side => the animation component tries to figure out what happens? Oh~ the player wants to move the right side!!! Hey Mechanim, we move the right side! => Okay, Let me play the right moving animation! (and how to know when jump up had done!?)
and too many IF-Statement used.
We have been considering how to make it simple!
We realized what happens now When the player pushes something button with the collision.
the upper code shows up how our code works.
- get the physics event => if the character is on the ground, and not on the ladder, and whatever wall => it is the ground action!
- So, the player pushes the jump button? or the crouch button? or the moving button?
- We can figure out what happens now.
And this controller component will send what situation to the movement component and the animation component.
We can reduce the if~else statements now!
By the upload limitation, next time, Let me say how to avoid the dependency.
Bye!!
Rapaces
Casual platformer action RPG
Status | Prototype |
Publisher | |
Author | crossbell |
Genre | Platformer, Action, Role Playing |
Tags | Escape Game, Pixel Art, Side Scroller, Speedrun |
Languages | English, Korean |
Accessibility | Subtitles |
More posts
- 20nd week, the tutorial build hereDec 09, 2022
- 18th week, 1st BOSSNov 27, 2022
- TECH TIP. How to make the parallax scrolling with the shaderNov 16, 2022
- 17th week, How to fix the tile gap on UnityNov 15, 2022
- 16th week, We added the title, prologue and the first event scene.Nov 10, 2022
- 15th week, Now We tested the cutsceneOct 31, 2022
- 14th week, Making the title and opening narrative scenesOct 24, 2022
- 13th week, We had changed our game title.Oct 18, 2022
- 12th week, the ink & inky, Unity dialogue systemOct 11, 2022
- 11th week, the hiding and the ladder featureOct 05, 2022
Leave a comment
Log in with itch.io to leave a comment.