# Line help beginner completely new

**URL:** <https://discourse.processing.org/t/line-help-beginner-completely-new/15120>\
**Category:** Coding Questions\
**Created:** [November 1, 2019, 3:00pm UTC](https://discourse.processing.org/t/line-help-beginner-completely-new/15120 "2019-11-01T15:00:43Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 5, 2019, 7:39pm UTC](https://discourse.processing.org/t/line-help-beginner-completely-new/15120/15 "2019-11-05T19:39:29Z")

</div>

continued here:

> [@Collision rect - ellipse : Multiple questions - More info in Body](https://discourse.processing.org/t/collision-rect-ellipse-multiple-questions-more-info-in-body/15155):
>
> How can I make that when the laser hits the rectangle that randomly spawns, the laser will just stop? Like it will not go any further but will stop? How can I make collision so my player (ellipse) will be not able to go through the rectangle from question 1? Thank you! The Code for both questions \> float px, py; float len; int value = 0; float rx, ry; float wx = 30, wy = 70; void setup(){ size(800, 600); cursor(CROSS); len = max(width + 12121, height + 12121); px = 255; py = …

---

_[View the full topic](https://discourse.processing.org/t/line-help-beginner-completely-new/15120)._
