#Collisions panels or sprites

7 messages · Page 1 of 1 (latest)

drowsy shard
#

I need some help with detecting if a panel/sprite is colliding with another panel/sprite
I've tried googling but i did not understand anything what was happening
Do you guys have any snippets or tutorials i may use? :)

tl;dr: i want to detect when panel touches another panel

late turtle
#

panels are control nodes, so you can use Rect2 methods to detect if they're overlapping

#

so something like

panel1.get_global_rect().intersects(panel2.get_global_rect())
drowsy shard
drowsy shard
#

you are now my best frined

late turtle
#

Thanks lol