I'm trying to make a game with a player with TileMovement, and boxes. When the player runs into a box, the box is pushed, unless it's pushed into a wall, in which case, the player & box stay in place. Any idea how to do this? Thanks in advance.
https://drive.google.com/open?id=1FJWvk4nyG5_x50RllM1H5y8S4dsUmQoc
I made an example for you but using just the Free Edition of c3 so I couldn't use any Array, Family et... plus it was crashing quite a lot while I was saving I lost many Times the things I was doing.
it works only for the Right as the Events are limited but it should be easy to replicate for all the Directions.
It was a bit challenging the way you choose to do it with TileMovement & Solid Boxes as the TileMovement for the Boxes if they need to check if they can Move you have to deactivate first the Solids for that box other ways it will give you negatively even if it can Move to that Direction
An Array saving all objects in the Grid will be much easier hope it helps.
https://www.dropbox.com/s/0ypidki16rdztkq/Push%20Blocks%20TileMovement.c3p?dl=0