Cobratattoo@feddit.org to Learn Programming@programming.dev · 3 days agoHow to define lines and check on click which body is clicked?feddit.orgimagemessage-square12fedilinkarrow-up126arrow-down11file-text
arrow-up125arrow-down1imageHow to define lines and check on click which body is clicked?feddit.orgCobratattoo@feddit.org to Learn Programming@programming.dev · 3 days agomessage-square12fedilinkfile-text
How can I define lines so when I click on the screen, my program knows whether I clicked on A B or C?
minus-squareFreudianCafelinkfedilinkarrow-up1·3 days agoStep 1: use Godot Step 2: use Area2D node Step 3: use is_inside_area function with mouse_position as parameter
Step 1: use Godot Step 2: use Area2D node Step 3: use is_inside_area function with mouse_position as parameter