In an effort to improve my abilities as a game developer I decided to try and recreate the classic "Donkey Kong" in 2D using sprites and playmaker.
Barrels and fire sprite
Game Play
To be honest I do not clearly understand how to use the sprite editor when using a sprite sheet; so I choose to use playmaker to control the sequence of sprites to play when walking, jumping and climbing.
I had difficulty when using a sprite character wielding the hammer, its position was different to the main walking. So I used a separate game object as a child and switched between them for hammer time, but detecting only the hammer head for trigger events proved difficult so, in the end, I added the hammer with an animation that matches the sprite to the main character its sprite renderer is disabled.
Mario is the parent, hammer pickup in use is the hammer with the animation and Mario hammer is the sprite who walks with the hammer.
Rolling Barrels: use a random float "timer" min 4, Max 8 with float compare action equal or greater than roll a barrel.
Ascending fire sprite: uses four separate game objects in order to achieve the onscreen movement.
1. direction node tells the fire sprite to move in a given direction "send event by name to the current fire sprite"
2. A trigger allows the fire sprite to climb it activates a fireball ladder with its own trigger checked and waits for 1.2sec to finish and deactivate the fireball ladder.
3. the fire sprite "ladders FSM" listens for this event and allows the sprite to climb the ladder on exit reset the ignore collisions and reactivate the normal movement.
There must be a better way to do this, can you help me out?