# Building a Walker in p5

**URL:** https://discourse.processing.org/t/building-a-walker-in-p5/7336
**Category:** Coding Questions
**Created:** [January 8, 2019, 11:07pm UTC](https://discourse.processing.org/t/building-a-walker-in-p5/7336 "2019-01-08T23:07:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pers0n](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@pers0n](https://discourse.processing.org/u/pers0n)
#### Post date: [January 8, 2019, 11:07pm UTC](https://discourse.processing.org/t/building-a-walker-in-p5/7336/1 "2019-01-08T23:07:24Z")

</div>

I’m having trouble writing a Walker in P5, mostly due to Classes/Objects. I’ve tried it 2 ways, but am not having any luck ☹

[https://editor.p5js.org/pers0n/sketches/HyFphoMzV](https://editor.p5js.org/pers0n/sketches/HyFphoMzV)

[https://editor.p5js.org/pers0n/sketches/SJFG6iGMN](https://editor.p5js.org/pers0n/sketches/SJFG6iGMN)

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [January 9, 2019, 1:17am UTC](https://discourse.processing.org/t/building-a-walker-in-p5/7336/2 "2019-01-09T01:17:30Z")

</div>

just to get the class up and running:

> **[p5.js Web Editor](https://editor.p5js.org/kll/sketches/Hk0bvpzGN)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

following that convention that

> class Big …  
> var small = new Big
