Rigidbody2d or KinematicBody2D Which is the best approach to make a game like Money movers ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vishnugames

Hi all.
I am a unity game developer and recently started learning GODOT. I would like to know what is the best approach to make a like 2d puzzle platformer game like “Money Movers” https://www.youtube.com/watch?v=YWIC7eXM_3I
Where the player characters can interact with other rigid bodies and themselves by carrying on top of another.

I would suggest using a KinematicBody2D. Most of the mechanics for “Money Movers” can probably be implemented with a KinematicBody2D.

Ertain | 2021-01-28 17:29

Thanks for the suggestion, I am following the kinematic body route.

vishnugames | 2021-02-03 04:22

:bust_in_silhouette: Reply From: Vikrant

I recommend you to use KinematicBody2D as it is far easier to code and implement then Rigidbody2D. And also in KinematicBody2D you have full control on player behaviour provided there is no external physics engine is working on it. Check this tutorial out to get starter with KinematicBody2D

Also if you want to carry other person on top you can use move_and_slide_with_snap() if you consider using KinematicBody2D Check this tutorial out

I recommend you to visit at Kids Can Code as this site helps me alot.

Vikrant | 2021-01-30 10:50

Thank you for the pointers. I’m following “Kids can Code” tutorials they are really helpful, still haven’t implemented the piggyback logic, I guess I’m on the right track.

vishnugames | 2021-02-03 03:52