Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Can you tell me how you made the player movement script, my player cant push objects

There isn't a tutorial for this anywhere online. I really need help on pushing blocks in unity.

Hey! Sorry I'm a bit rusty on the actual implementation (and this is Godot Engine by the way, not Unity, although it doesn't really matter), but IIRC I used a simple function to check if an entity (player, acorn, etc.) could move to a target tile. I did collision checking and stuff like that in this function.

If the destination is occupied by a pushable item (an acorn), I would call the same function recursively passing the acorn and the desired push destination.

The function returns false if no movement is possible, so if the acorn cannot be pushed to its destination the whole movement is halted.

Can't really check the actual code at the moment since I'm on vacation, but I hope this helps. Good luck!

Thanks, I thought you used unity like i did.

And, it would help if i could get that code soon since I'm a beginner.