How to simulate a post-it board?

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

Hi,
I’ve been trying Godot for a little week, and I’m still quite struggling with the Area/Collision mechanic. For example, if I want to create a post-it board, with these characteristics:

  • The player can pick a post-it and replace it with his mouse
  • If a post-it is overlapping another one, it will replace itself on a nearby position
    What do I need to do?
    Does my post_it.tscn that I will instantiate need to be a staticbody2D, a kinematicbody2D (both with area2D and collision2D…etc), or will this be enough?
- Area2D
-- CollisonShape2D
--- Sprite_of_Post_it

I’m not really asking for the scripts of these objects (though if you have some tips or shortcuts regarding these, I’m interested), but more for what structure I should use at first, as I don’t want to go in the wrong direction.

:bust_in_silhouette: Reply From: flurick

No, no need. In fact you could probably do this in one script with a couple of draw loops instead of nodes :slight_smile: