# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=175

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

**Page:** 176

---

## [Spawn one sprite when another sprite exits](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811)

<div class="topic-metadata">

**Author:** [@jxjohn](https://discourse.processing.org/u/jxjohn)\
**Replies:** 14\
**Last updated:** [October 23, 2020, 12:19pm UTC](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811 "2020-10-23T12:19:25Z")

</div>

Hi I’m trying to say that whenever the enemy sprite leaves the screen a mini sprite will be spawned. I already managed to ensure that mini sprites are spawn when enemy leaves the screen but it spawns all eight mini sprit…

---

## [Boolean / if statement help](https://discourse.processing.org/t/boolean-if-statement-help/24809)

<div class="topic-metadata">

**Author:** [@kimchi](https://discourse.processing.org/u/kimchi)\
**Replies:** 9\
**Last updated:** [October 23, 2020, 8:13am UTC](https://discourse.processing.org/t/boolean-if-statement-help/24809 "2020-10-23T08:13:20Z")

</div>

Hi there, I’m trying to make a program that has a “fly” that jumps around the 4 dots of the clock. I have to use if statements in order to make the fly to move and I think I have a good idea of how to do it, but now I’m …

---

## [Multplying each element in an array](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827)

<div class="topic-metadata">

**Author:** [@Mischief-Managed](https://discourse.processing.org/u/Mischief-Managed)\
**Replies:** 7\
**Last updated:** [October 23, 2020, 1:13am UTC](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827 "2020-10-23T01:13:44Z")

</div>

Hi, I wanted to make an array where each element is simply being multiplied by 2. Here is what I have so far. Help would be greatly appreciated int expo(int\[\] array\[\]){ int mult = 2; for (int i=0;i\<array.length;i++)…

---

## [Could somebody proof-read my curve Class?](https://discourse.processing.org/t/could-somebody-proof-read-my-curve-class/24828)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [October 22, 2020, 11:25pm UTC](https://discourse.processing.org/t/could-somebody-proof-read-my-curve-class/24828 "2020-10-22T23:25:35Z")

</div>

Hello all! I just wrote a class for curve. Could somebody check / proofread my code? I am surprised why the curve goes UP when my the control point goes down. my understanding of https://www.processing.org/reference/…

---

## [Is it possible to dim the entire screen in Processing?](https://discourse.processing.org/t/is-it-possible-to-dim-the-entire-screen-in-processing/24786)

<div class="topic-metadata">

**Author:** [@tea](https://discourse.processing.org/u/tea)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 11:56am UTC](https://discourse.processing.org/t/is-it-possible-to-dim-the-entire-screen-in-processing/24786 "2020-10-21T11:56:22Z")

</div>

So I’m trying to make a 2D Platformer game that goes like this: A boy (the player) is trying to get home from the starting point before dawn, and he has a companion of a little flame sprite to keep his surrounding illum…

---

## [Remove Audio when finished playing](https://discourse.processing.org/t/remove-audio-when-finished-playing/24802)

<div class="topic-metadata">

**Author:** [@Darkfusion2](https://discourse.processing.org/u/Darkfusion2)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 5:21pm UTC](https://discourse.processing.org/t/remove-audio-when-finished-playing/24802 "2020-10-22T17:21:48Z")

</div>

So baysicly I got a Video that starts playing when the score of an clickergame hits 100. Everything works good but when the video is finished it stays on the screen. Is there a way so that when the video is over it is …

---

## [Copying ArrayLists without affecting original](https://discourse.processing.org/t/copying-arraylists-without-affecting-original/24820)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [October 22, 2020, 1:37pm UTC](https://discourse.processing.org/t/copying-arraylists-without-affecting-original/24820 "2020-10-22T13:37:10Z")

</div>

Hi, Is there a way to create a new copy of an ArrayList full of custom classes (in case it’s relevant), such that modifications to the objects in the new list will not affect the originals? Failing that, is there a way…

---

## [How do I make these rows and columns (csv to grid) work?](https://discourse.processing.org/t/how-do-i-make-these-rows-and-columns-csv-to-grid-work/24818)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 12:44pm UTC](https://discourse.processing.org/t/how-do-i-make-these-rows-and-columns-csv-to-grid-work/24818 "2020-10-22T12:44:34Z")

</div>

Hello, I’m trying to make a grid that looks a bit like this photo, except I’m using different data which corresponds to the days of the year. I’ve noticed it works if I use something like “int rows = 10; int cols = 5;” …

---

## [Draw a Pyramid with for-loop and with rect](https://discourse.processing.org/t/draw-a-pyramid-with-for-loop-and-with-rect/24751)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 5\
**Last updated:** [October 20, 2020, 9:07pm UTC](https://discourse.processing.org/t/draw-a-pyramid-with-for-loop-and-with-rect/24751 "2020-10-20T21:07:36Z")

</div>

Hello, I’m trying to get a pyramid with a for loop. It has to start at the middle with a rect like in my code (but there are 2 rects actually idk why) and then go down on both sides step by step but i’m really confused …

---

## [Why isn't my code working when it's the exact same as my tutors?](https://discourse.processing.org/t/why-isnt-my-code-working-when-its-the-exact-same-as-my-tutors/24813)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 9\
**Last updated:** [October 22, 2020, 10:09am UTC](https://discourse.processing.org/t/why-isnt-my-code-working-when-its-the-exact-same-as-my-tutors/24813 "2020-10-22T10:09:05Z")

</div>

Hello, I’m following a tutorial from my tutor and it’s just the start so he made a mistake on purpose for all of the ellipses to fall in to the top left (so that’s not the issue here) but whenever I try to do the exact s…

---

## [Import a lot of svg](https://discourse.processing.org/t/import-a-lot-of-svg/24805)

<div class="topic-metadata">

**Author:** [@Dimdimtri](https://discourse.processing.org/u/Dimdimtri)\
**Replies:** 4\
**Last updated:** [October 22, 2020, 9:08am UTC](https://discourse.processing.org/t/import-a-lot-of-svg/24805 "2020-10-22T09:08:42Z")

</div>

Hi everyone, I wanted to know if there is a solution to import a lot of svg at the same time. they are all in the same folder. I have like 100 and I can’t see myself writing “PShape bot, bot2, bot3 …;” Because I wanted …

---

## [About Processing.video](https://discourse.processing.org/t/about-processing-video/24755)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [October 22, 2020, 6:27am UTC](https://discourse.processing.org/t/about-processing-video/24755 "2020-10-22T06:27:56Z")

</div>

Everytime when I try to run a sketch including processing video library it crashes and gives this error: UnsatisfiedLinkError: Could not load library: gstreamer UnsatisfiedLinkError: Could not load library: gstreamer …

---

## [Object help new user](https://discourse.processing.org/t/object-help-new-user/24711)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 10\
**Last updated:** [October 21, 2020, 9:44pm UTC](https://discourse.processing.org/t/object-help-new-user/24711 "2020-10-21T21:44:35Z")

</div>

I’m a realtively new user. I’ve been watching Dan SHiffman videos and studying the examples given in the processing environment. Lately, I’ve been studying the example in the contributed libraries/controlP5/controllers/c…

---

## [Explosion in on impact](https://discourse.processing.org/t/explosion-in-on-impact/24800)

<div class="topic-metadata">

**Author:** [@kasper1](https://discourse.processing.org/u/kasper1)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 9:05pm UTC](https://discourse.processing.org/t/explosion-in-on-impact/24800 "2020-10-21T21:05:08Z")

</div>

I am trying to implement a code where when the bird hits something it will explode but I am having trouble with displaying it. It gives me the error “NullPointerException” at code \<explosions\[a\].display(); explosions\[a\]…

---

## [Rosetta Examples development](https://discourse.processing.org/t/rosetta-examples-development/18945)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 79\
**Last updated:** [October 21, 2020, 4:17pm UTC](https://discourse.processing.org/t/rosetta-examples-development/18945 "2020-10-21T16:17:07Z")

</div>

We have a great development chat happening on the Rosetta Examples release announcement thread – so I’m moving all that discussion here so that it can continue. The idea is to make the other thread announcements-only so…

---

## [Trying to ensure that one item spawns at a time](https://discourse.processing.org/t/trying-to-ensure-that-one-item-spawns-at-a-time/24745)

<div class="topic-metadata">

**Author:** [@jxjohn](https://discourse.processing.org/u/jxjohn)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 10:46am UTC](https://discourse.processing.org/t/trying-to-ensure-that-one-item-spawns-at-a-time/24745 "2020-10-21T10:46:05Z")

</div>

Hi, I’m trying to say when an enemy disappear from the screen it will move from 1 array to the next while maintaining the previous shape it has already drew. However, whenever I run the code it seems to draw all the arra…

---

## [How to put an array of images inside a function?](https://discourse.processing.org/t/how-to-put-an-array-of-images-inside-a-function/24379)

<div class="topic-metadata">

**Author:** [@tea](https://discourse.processing.org/u/tea)\
**Replies:** 27\
**Last updated:** [October 21, 2020, 6:51am UTC](https://discourse.processing.org/t/how-to-put-an-array-of-images-inside-a-function/24379 "2020-10-21T06:51:37Z")

</div>

So I’m writing a Super Mario/platform game for school, and I’m trying to make a hand-drawn character move around the screen, in three modes: Idle: just standing, default mode if no key is pressed Running: when right or…

---

## [Image doesn't show](https://discourse.processing.org/t/image-doesnt-show/24693)

<div class="topic-metadata">

**Author:** [@lukeltw](https://discourse.processing.org/u/lukeltw)\
**Replies:** 7\
**Last updated:** [October 20, 2020, 6:41pm UTC](https://discourse.processing.org/t/image-doesnt-show/24693 "2020-10-20T18:41:08Z")

</div>

Can someone tell me where is wrong? I am a new programmer, I try to run my code, then I got this: The file “psa.jpg” is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch…

---

## [Making shape disappear in a specific area](https://discourse.processing.org/t/making-shape-disappear-in-a-specific-area/24749)

<div class="topic-metadata">

**Author:** [@karbon](https://discourse.processing.org/u/karbon)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 4:44pm UTC](https://discourse.processing.org/t/making-shape-disappear-in-a-specific-area/24749 "2020-10-20T16:44:43Z")

</div>

I am trying to make a shape disappear once it is released in a certain area of the window. I am unsure how I should look at the problem to make it work. I couldn’t find examples that were interactivity based. All the one…

---

## [Trying to create random circle that does not overlap](https://discourse.processing.org/t/trying-to-create-random-circle-that-does-not-overlap/24637)

<div class="topic-metadata">

**Author:** [@jxjohn](https://discourse.processing.org/u/jxjohn)\
**Replies:** 25\
**Last updated:** [October 20, 2020, 3:41pm UTC](https://discourse.processing.org/t/trying-to-create-random-circle-that-does-not-overlap/24637 "2020-10-20T15:41:29Z")

</div>

Hi I’m trying to create random circles which do not overlap. I have seen a few videos on the net but they do not specifically use array to solve the question. Is there any way to do it? Below is the code I have tried ou…

---

## [When one of the images pops up, the others are invisible](https://discourse.processing.org/t/when-one-of-the-images-pops-up-the-others-are-invisible/24748)

<div class="topic-metadata">

**Author:** [@seoha](https://discourse.processing.org/u/seoha)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 1:34pm UTC](https://discourse.processing.org/t/when-one-of-the-images-pops-up-the-others-are-invisible/24748 "2020-10-20T13:34:47Z")

</div>

Hello🤗 I want to make three images change one by one depending on the situation. How should I make them? Can you help me?:joy:

---

## [Create an artistic design that evolves and is transformed over time](https://discourse.processing.org/t/create-an-artistic-design-that-evolves-and-is-transformed-over-time/24706)

<div class="topic-metadata">

**Author:** [@olotropic\_world](https://discourse.processing.org/u/olotropic_world)\
**Replies:** 5\
**Last updated:** [October 20, 2020, 11:44am UTC](https://discourse.processing.org/t/create-an-artistic-design-that-evolves-and-is-transformed-over-time/24706 "2020-10-20T11:44:17Z")

</div>

Hi everyone, I would like to draw with Processing a specific visual object similar to a “larva that opens up” and inside there is a human being, similar to this image that I am attaching to you. The design must have …

---

## [Working with 2D arrays](https://discourse.processing.org/t/working-with-2d-arrays/24683)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 11\
**Last updated:** [October 20, 2020, 11:23am UTC](https://discourse.processing.org/t/working-with-2d-arrays/24683 "2020-10-20T11:23:18Z")

</div>

Can someone help me find out what I am doing wrong? Why is it not showing my green square? \*\*\*\*Move it as the first if statement that is checked.( I moved to to the beginning of draw….) The other two statements shoul…

---

## [Oscillating audio file volume slider with Minim & Processing](https://discourse.processing.org/t/oscillating-audio-file-volume-slider-with-minim-processing/24731)

<div class="topic-metadata">

**Author:** [@acousticer](https://discourse.processing.org/u/acousticer)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 9:55am UTC](https://discourse.processing.org/t/oscillating-audio-file-volume-slider-with-minim-processing/24731 "2020-10-20T09:55:13Z")

</div>

Hi, I’ve just been using processing for a few weeks but I’m struggling to understand how I can code this with Minim. I’ve made a slider, which controls the gain of an audio track (setVolume hasn’t worked for me). Eithe…

---

## [Building a multiplayer game with P5 and Angular](https://discourse.processing.org/t/building-a-multiplayer-game-with-p5-and-angular/24714)

<div class="topic-metadata">

**Author:** [@kemmeldev](https://discourse.processing.org/u/kemmeldev)\
**Replies:** 1\
**Last updated:** [October 19, 2020, 9:28pm UTC](https://discourse.processing.org/t/building-a-multiplayer-game-with-p5-and-angular/24714 "2020-10-19T21:28:04Z")

</div>

I am making a board game on a site created with Angular. I want the game to be able to be played by 2 persons on their own computer, over the internet. I know that I created a Processing sketch before where if ran, the…

---

## [Help me program how to win in tic tac toe](https://discourse.processing.org/t/help-me-program-how-to-win-in-tic-tac-toe/24340)

<div class="topic-metadata">

**Author:** [@Cal\_codes](https://discourse.processing.org/u/Cal_codes)\
**Replies:** 5\
**Last updated:** [October 5, 2020, 5:18pm UTC](https://discourse.processing.org/t/help-me-program-how-to-win-in-tic-tac-toe/24340 "2020-10-05T17:18:29Z")

</div>

please format code with \</\> button \* homework policy \* asking questions //A simple tic tac toe by Caleigh Esterhuyse Grid grid; int numMoves = 9; int column, row; boolean player1Playing = true; int moves = new i…

---

## [Processing4 and Swing Integration?](https://discourse.processing.org/t/processing4-and-swing-integration/24723)

<div class="topic-metadata">

**Author:** [@mshillinger](https://discourse.processing.org/u/mshillinger)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 3:35pm UTC](https://discourse.processing.org/t/processing4-and-swing-integration/24723 "2020-10-19T15:35:16Z")

</div>

I have a Java Swing app which uses processing 2.x. Will Processing 4.x support embedding the app in a Swing GUI. Regards Mike Shillinger

---

## [To play a video against the background of the kinect](https://discourse.processing.org/t/to-play-a-video-against-the-background-of-the-kinect/24716)

<div class="topic-metadata">

**Author:** [@seoha](https://discourse.processing.org/u/seoha)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 2:55pm UTC](https://discourse.processing.org/t/to-play-a-video-against-the-background-of-the-kinect/24716 "2020-10-19T14:55:44Z")

</div>

I’m a beginner, can you tell me the details please?:joy::joy: The background image is regenerated, but I can’t see the image of people being recognized and floating people. And the video that you ran before that runs t…

---

## [Processing does not find device](https://discourse.processing.org/t/processing-does-not-find-device/24193)

<div class="topic-metadata">

**Author:** [@laererlund](https://discourse.processing.org/u/laererlund)\
**Replies:** 8\
**Last updated:** [October 19, 2020, 3:06pm UTC](https://discourse.processing.org/t/processing-does-not-find-device/24193 "2020-10-19T15:06:05Z")

</div>

Hi, I have a problem with a LEAP Motion controller not responding. And I dont think it is the controller, because it worked fine the other day - I think it is Processing somehow losing track of ports and devices, somewh…

---

## [Unsatisfied Link Error despite Shared Library existing at proper location](https://discourse.processing.org/t/unsatisfied-link-error-despite-shared-library-existing-at-proper-location/22544)

<div class="topic-metadata">

**Author:** [@johnbentcope](https://discourse.processing.org/u/johnbentcope)\
**Replies:** 6\
**Last updated:** [October 19, 2020, 2:00pm UTC](https://discourse.processing.org/t/unsatisfied-link-error-despite-shared-library-existing-at-proper-location/22544 "2020-10-19T14:00:57Z")

</div>

Hello! I’ve been working on a codebase for a while now on Ubuntu 20.04, but for a ROS dependency I’ve installed 18.04 on another partition and am trying to get going again. In the new installation, I’ve recompiled my cop…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=174)

[Next page](https://discourse.processing.org/c/processing/6.md?page=176)
