Hey everyone! Over the last few months I’ve been grinding my way through the apple game by tutorial book. I was particularly looking forward to the SKTileMapNode section, but unfortunately I found that not all the topics I would like to see covered where covered.
I’ve always been looking forward to making a game like King Rabbbit: King Rabbit - Gameplay Walkthrough Part 1 - Chapter 1: Levels 1-16 (iOS) - YouTube
But after reading through the SKTileMapNode section, I still have no idea how I would go about making a game like this. The book go’s into great detail on how to detach bugs and walls from the SKTileMapNode and give them PhysicsBodies, it also go’s into great detail on collision, picking up bug sprays. However, it does not cover how you would go about making a game where the player can only move from tile to tile, pushing “boxes” onto the next tile.
I’m aware a “player” can be on a tile, when moving to the right, we could set the current tile to nil, setting the tile in the next column to “player”. But how do you animate this?
Also, when wanting to move to the right, how do we check if there is a “block” that can be moved? or if it cant be moved, how do we keep the player from moving without using the physicsBody?
It would be very much appreciated if anyone could provide me some tips, tricks, sampelcodes, or places I could go to learn more about this.