# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=591

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 592

---

## [Creating a game](https://discourse.processing.org/t/creating-a-game/2948)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 5\
**Last updated:** [August 26, 2018, 4:04pm UTC](https://discourse.processing.org/t/creating-a-game/2948 "2018-08-26T16:04:14Z")

</div>

I need some examples of codes of games. So that i can get an idea how to make a simple game like a character can collect coin and increase score And if touch any object like bomb its life will be deducted. Just some exam…

---

## [Multiple PFragments in one Android app?](https://discourse.processing.org/t/multiple-pfragments-in-one-android-app/2981)

<div class="topic-metadata">

**Author:** [@Pingas](https://discourse.processing.org/u/Pingas)\
**Replies:** 2\
**Last updated:** [August 26, 2018, 9:17am UTC](https://discourse.processing.org/t/multiple-pfragments-in-one-android-app/2981 "2018-08-26T09:17:22Z")

</div>

So I see that I can export an Android Project and open it in Android studio. It runs just fine, however I would like to be able to switch back and forth between two PFragments, and I cannot for the life of me figure out …

---

## [Movie objects all change at the same time](https://discourse.processing.org/t/movie-objects-all-change-at-the-same-time/2979)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [August 25, 2018, 11:13pm UTC](https://discourse.processing.org/t/movie-objects-all-change-at-the-same-time/2979 "2018-08-25T23:13:18Z")

</div>

Hello Processors, thank you for your time. I made this object using a Movie object where two videos float up and stay in the top. It works but I also typed a function for each of them to change color when I click on them…

---

## [Video does not show up when object oriented code runs](https://discourse.processing.org/t/video-does-not-show-up-when-object-oriented-code-runs/2976)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [August 25, 2018, 11:09pm UTC](https://discourse.processing.org/t/video-does-not-show-up-when-object-oriented-code-runs/2976 "2018-08-25T23:09:09Z")

</div>

Hello Processors, thank you for your time. I made an object using another object called Movie, so that two videos appear floating upwards and stay in the top. The code runs but only the white background appears. import …

---

## [Image to text (Tess4J?)](https://discourse.processing.org/t/image-to-text-tess4j/2957)

<div class="topic-metadata">

**Author:** [@MTech](https://discourse.processing.org/u/MTech)\
**Replies:** 18\
**Last updated:** [August 25, 2018, 9:06pm UTC](https://discourse.processing.org/t/image-to-text-tess4j/2957 "2018-08-25T21:06:58Z")

</div>

Hey all, So the past few hours i’ve been desperately trying to get some form of ‘image-to-text’ working in processing 3. I’ve browsed and read alot of things for java, and i think it should be possible to get something …

---

## [Move the character by pressing up key](https://discourse.processing.org/t/move-the-character-by-pressing-up-key/2475)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 10\
**Last updated:** [August 25, 2018, 6:42pm UTC](https://discourse.processing.org/t/move-the-character-by-pressing-up-key/2475 "2018-08-25T18:42:53Z")

</div>

When keyboard arrow key UP is press, character should move up to the next upper section. Each time character is more up on level, this level will be coloured differently. Please somebody help me to code this.

---

## [Random boxes and circles using array(s)](https://discourse.processing.org/t/random-boxes-and-circles-using-array-s/2939)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 4\
**Last updated:** [August 25, 2018, 6:40pm UTC](https://discourse.processing.org/t/random-boxes-and-circles-using-array-s/2939 "2018-08-25T18:40:12Z")

</div>

I am trying to make something like this. My code is here int x; int y=226; boolean play = true; void setup() { size(800, 400); background(0); } void draw() { cave(); stone(); clumsy(); bomb(); coin…

---

## [Linking my android device](https://discourse.processing.org/t/linking-my-android-device/2931)

<div class="topic-metadata">

**Author:** [@ask](https://discourse.processing.org/u/ask)\
**Replies:** 3\
**Last updated:** [August 25, 2018, 4:55pm UTC](https://discourse.processing.org/t/linking-my-android-device/2931 "2018-08-25T16:55:44Z")

</div>

hi! i am asking your about the help as i seem to go crazy soon. i try over and over again to connect my Lenovo device to the Processing but it always shows me that picture :

---

## [Run -\> Present doesn't work as expected](https://discourse.processing.org/t/run-present-doesnt-work-as-expected/2942)

<div class="topic-metadata">

**Author:** [@luhai](https://discourse.processing.org/u/luhai)\
**Replies:** 1\
**Last updated:** [August 25, 2018, 3:42pm UTC](https://discourse.processing.org/t/run-present-doesnt-work-as-expected/2942 "2018-08-25T15:42:16Z")

</div>

Can anyone run sketch in Present Mode by clearing the rest of the screen to present your sketch all by itself?

---

## [While loop bug? Stuck on empty](https://discourse.processing.org/t/while-loop-bug-stuck-on-empty/2557)

<div class="topic-metadata">

**Author:** [@iamtomodea](https://discourse.processing.org/u/iamtomodea)\
**Replies:** 19\
**Last updated:** [August 13, 2018, 10:41am UTC](https://discourse.processing.org/t/while-loop-bug-stuck-on-empty/2557 "2018-08-13T10:41:05Z")

</div>

Hi I have a weird bug in a sketch that I’m using to control a plotter. I have a while loop that is controlled by a boolean that is switched to false while the plotter is in the middle of doing something. Once the plott…

---

## [Tint mp4 when clicked](https://discourse.processing.org/t/tint-mp4-when-clicked/2937)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 4\
**Last updated:** [August 25, 2018, 5:40am UTC](https://discourse.processing.org/t/tint-mp4-when-clicked/2937 "2018-08-25T05:40:49Z")

</div>

Hello Processors, thank you for your time. I have a loop that changes the size of mp4’s (images), using the key “s” I stop the loop and restart it with key “p”. I want to click on any of the images and randomly tint. I t…

---

## [Requirements for p5.js Web Editor](https://discourse.processing.org/t/requirements-for-p5-js-web-editor/2913)

<div class="topic-metadata">

**Author:** [@ziebarth](https://discourse.processing.org/u/ziebarth)\
**Replies:** 5\
**Last updated:** [August 24, 2018, 9:43pm UTC](https://discourse.processing.org/t/requirements-for-p5-js-web-editor/2913 "2018-08-24T21:43:32Z")

</div>

Hello, I would like to use the p5.js Web Editor for introducing programming in 2 courses at my school. Unfortunately, I only get an empty page (it contains some divs that are not displayed) when I try to load the editor…

---

## [Frame differencing with Kinect and opencv](https://discourse.processing.org/t/frame-differencing-with-kinect-and-opencv/2919)

<div class="topic-metadata">

**Author:** [@raya](https://discourse.processing.org/u/raya)\
**Replies:** 1\
**Last updated:** [August 24, 2018, 9:37pm UTC](https://discourse.processing.org/t/frame-differencing-with-kinect-and-opencv/2919 "2018-08-24T21:37:55Z")

</div>

Hi, Is there any way to do frame differencing with openCV and/or the depth data of Kinect to detect interaction in a scene? In the scene there are no skeletons, just a table with some objects on it and I need to detect…

---

## [Distance to a bezier curve](https://discourse.processing.org/t/distance-to-a-bezier-curve/2899)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 8\
**Last updated:** [August 24, 2018, 7:22pm UTC](https://discourse.processing.org/t/distance-to-a-bezier-curve/2899 "2018-08-24T19:22:09Z")

</div>

Hi everyone, Following the discussion on this thread relative to pattern attractors, I wanted to implement a method to find the distance to a bezier curve. You can download the project on this gitHub repository or belo…

---

## [Run Window can't be moved](https://discourse.processing.org/t/run-window-cant-be-moved/2721)

<div class="topic-metadata">

**Author:** [@L0RDZed](https://discourse.processing.org/u/L0RDZed)\
**Replies:** 6\
**Last updated:** [August 24, 2018, 3:42pm UTC](https://discourse.processing.org/t/run-window-cant-be-moved/2721 "2018-08-24T15:42:12Z")

</div>

Hi, when I click ‘Run’ the window gets locked to my screen and I can’t move it. Maybe a bug, it’s not happened before today. Code (D.Shiffman’s Perlin Terrain) Apologies for code formatting - I tried to rectify in an …

---

## [Key press ignored if key is released at same time](https://discourse.processing.org/t/key-press-ignored-if-key-is-released-at-same-time/2863)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 5\
**Last updated:** [August 24, 2018, 3:38pm UTC](https://discourse.processing.org/t/key-press-ignored-if-key-is-released-at-same-time/2863 "2018-08-24T15:38:16Z")

</div>

Hey guys! I am trying to create a sketch where an object on the screen will move when the WASD keys are pressed. The object exists on a grid and will to the centre of a square adjacent to its own in a direction according…

---

## [Press space bar to stop animation](https://discourse.processing.org/t/press-space-bar-to-stop-animation/2933)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 2\
**Last updated:** [August 24, 2018, 3:26pm UTC](https://discourse.processing.org/t/press-space-bar-to-stop-animation/2933 "2018-08-24T15:26:50Z")

</div>

I have written this code. int x; int y=241; void setup() { size(800, 400); background(0); } void draw() { cave(); stone(); clumsy(); } void cave() { noStroke(); fill(160); rect(0,100,width,200);…

---

## [Tank movement seen from above](https://discourse.processing.org/t/tank-movement-seen-from-above/2883)

<div class="topic-metadata">

**Author:** [@Toki](https://discourse.processing.org/u/Toki)\
**Replies:** 11\
**Last updated:** [August 24, 2018, 2:51pm UTC](https://discourse.processing.org/t/tank-movement-seen-from-above/2883 "2018-08-24T14:51:17Z")

</div>

Hello, Im new to processing and coding in general. Im trying to code a “tank” move around (seen from above). I want to have a tank rotate left when pressing keyboard “A” and right when pressing “D”. And I want it to dri…

---

## [A repeated color pattern](https://discourse.processing.org/t/a-repeated-color-pattern/2928)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 5\
**Last updated:** [August 24, 2018, 2:42pm UTC](https://discourse.processing.org/t/a-repeated-color-pattern/2928 "2018-08-24T14:42:24Z")

</div>

I have written this code. void setup(){ size(800,400); background(0); } void draw(){ cave(); stone(); } void cave(){ noStroke(); fill(160); rect(0,100,width,200); } void stone(){ for(int i=0;i\<width;i+…

---

## [\[ask\] how to use an array of double in Java Processing](https://discourse.processing.org/t/ask-how-to-use-an-array-of-double-in-java-processing/2908)

<div class="topic-metadata">

**Author:** [@tavisena](https://discourse.processing.org/u/tavisena)\
**Replies:** 20\
**Last updated:** [August 24, 2018, 1:51pm UTC](https://discourse.processing.org/t/ask-how-to-use-an-array-of-double-in-java-processing/2908 "2018-08-24T13:51:07Z")

</div>

hi everyone! i have some project about using svm the coding using C++, ii wanna use this parameter in my java processing because i needed to control robot using leap motion and the svm as the decision maker. the array o…

---

## [Neural Network help](https://discourse.processing.org/t/neural-network-help/2871)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 6\
**Last updated:** [August 24, 2018, 1:37pm UTC](https://discourse.processing.org/t/neural-network-help/2871 "2018-08-24T13:37:55Z")

</div>

Hi everybody, I built a Neural Network super easy and now try to test it out I discovered that when I have to multiply the Weights \* Input (sigmoid = W \* I + B) I found different matrices size and so I cant do that and …

---

## [noSmooth() doesn't works with P2D](https://discourse.processing.org/t/nosmooth-doesnt-works-with-p2d/2924)

<div class="topic-metadata">

**Author:** [@Kayno](https://discourse.processing.org/u/Kayno)\
**Replies:** 10\
**Last updated:** [August 24, 2018, 1:37pm UTC](https://discourse.processing.org/t/nosmooth-doesnt-works-with-p2d/2924 "2018-08-24T13:37:26Z")

</div>

Hello, I’m doing a little game and I’m using pixel art images so I need to use noSmooth() which doesn’t works in P2D… I would like to know if there is another way to use pixel art in P2D. Sorry about mistakes, I’m fre…

---

## [Multiple line graphs](https://discourse.processing.org/t/multiple-line-graphs/2785)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 8\
**Last updated:** [August 24, 2018, 1:03pm UTC](https://discourse.processing.org/t/multiple-line-graphs/2785 "2018-08-24T13:03:27Z")

</div>

Hi all - with the much appreciated help from TfGuy44, i managed to develop the below. which is great and very useful. I have decided however to go in a slightly different direction and want to view my data in the form of…

---

## [Incrementing frameRate() based on time](https://discourse.processing.org/t/incrementing-framerate-based-on-time/2897)

<div class="topic-metadata">

**Author:** [@digitaldetritus](https://discourse.processing.org/u/digitaldetritus)\
**Replies:** 4\
**Last updated:** [August 24, 2018, 11:09am UTC](https://discourse.processing.org/t/incrementing-framerate-based-on-time/2897 "2018-08-24T11:09:15Z")

</div>

I am trying to increment the framerate of my animation from 16fps to 1fps over a 4 second period of time with 4 second (4000 millis) delay in between. Is frameRate() the best way to do this? The current playback seems gl…

---

## [Creating an ArrayList of SinOsc objects, trouble with adding, removing, play sound and stop sound](https://discourse.processing.org/t/creating-an-arraylist-of-sinosc-objects-trouble-with-adding-removing-play-sound-and-stop-sound/2844)

<div class="topic-metadata">

**Author:** [@lanelps](https://discourse.processing.org/u/lanelps)\
**Replies:** 1\
**Last updated:** [August 24, 2018, 10:26am UTC](https://discourse.processing.org/t/creating-an-arraylist-of-sinosc-objects-trouble-with-adding-removing-play-sound-and-stop-sound/2844 "2018-08-24T10:26:43Z")

</div>

As the title says I’m trying to create an ArrayList of SinOsc objects. When I click the mouse I want it to add a new SinOsc object to the ArrayList which will play a sine wave. The sin wave will differ in frequency and…

---

## [Where can I upload my sketch for someone to see and interact with online?](https://discourse.processing.org/t/where-can-i-upload-my-sketch-for-someone-to-see-and-interact-with-online/2902)

<div class="topic-metadata">

**Author:** [@stonesyy](https://discourse.processing.org/u/stonesyy)\
**Replies:** 10\
**Last updated:** [August 24, 2018, 5:30am UTC](https://discourse.processing.org/t/where-can-i-upload-my-sketch-for-someone-to-see-and-interact-with-online/2902 "2018-08-24T05:30:03Z")

</div>

Hi Everyone, Do any of you have any suggestions regarding where I could upload my processing sketch online(it’s not working in openprocessing)? I want to show my Mom who is across the country and not very computer savvy…

---

## [Adding data to a string array how to?](https://discourse.processing.org/t/adding-data-to-a-string-array-how-to/2891)

<div class="topic-metadata">

**Author:** [@stevenette](https://discourse.processing.org/u/stevenette)\
**Replies:** 2\
**Last updated:** [August 24, 2018, 5:17am UTC](https://discourse.processing.org/t/adding-data-to-a-string-array-how-to/2891 "2018-08-24T05:17:12Z")

</div>

Hello, I am trying to add data to a string array every time one of those data values changes. I don’t know if this is possible. time = timeStamp.format(now); for (int i = 0; i \< 2; i++) { String\[\] gateGageTime; …

---

## [Present random shape, then fixed order (assignment help)](https://discourse.processing.org/t/present-random-shape-then-fixed-order-assignment-help/2773)

<div class="topic-metadata">

**Author:** [@FrankieZ](https://discourse.processing.org/u/FrankieZ)\
**Replies:** 16\
**Last updated:** [August 24, 2018, 5:02am UTC](https://discourse.processing.org/t/present-random-shape-then-fixed-order-assignment-help/2773 "2018-08-24T05:02:25Z")

</div>

Hi there! Does anyone know how to write a program that randomly presents a shape out of a collection of 3 (let’s say line out of rectangle,ellipse and line) and when users press a key it will change to anothet shape in a…

---

## [how to program HC SR04 ultrasonic sensor ](https://discourse.processing.org/t/how-to-program-hc-sr04-ultrasonic-sensor/2890)

<div class="topic-metadata">

**Author:** [@reedoh](https://discourse.processing.org/u/reedoh)\
**Replies:** 1\
**Last updated:** [August 24, 2018, 5:01am UTC](https://discourse.processing.org/t/how-to-program-hc-sr04-ultrasonic-sensor/2890 "2018-08-24T05:01:47Z")

</div>

Hi, can anyone guide me on how to obtain distance from sonar sensor using processing IDE for raspberry pi

---

## [Error playing SinOsc objects from an ArrayList](https://discourse.processing.org/t/error-playing-sinosc-objects-from-an-arraylist/2867)

<div class="topic-metadata">

**Author:** [@lanelps](https://discourse.processing.org/u/lanelps)\
**Replies:** 11\
**Last updated:** [August 24, 2018, 12:11am UTC](https://discourse.processing.org/t/error-playing-sinosc-objects-from-an-arraylist/2867 "2018-08-24T00:11:29Z")

</div>

I’m trying to create an ArrayList of SinOsc objects (Which works), but then the usual functions to play and stop sound aren’t recognised? The end goal is to be able to click to create a new object and hit a key to remov…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=590)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=592)
