Thanks a bundle for the tutorials! Hope you have time to make more soon.
Hi, I am trying something where I want the size of the ellipse to change when it collides with the walls. How should I do this? I tried changing the display function to : public void display(){ stroke(34,139,34); noFill(); if((this.ypos + this.size/2) == height || (this.ypos -this.size/2)==0){ this.size = 2; } if((this.xpos + this.size/2) == width || (this.xpos -this.size/2) ==0){ this.size = 2.; } ellipse(xpos, ypos, size,size); } but it doesnt work
Hi! Thanks for this awesome tutorial. A question that came to my mind: wouldn't it be more useful to move the if constructs inside of the Ball class? And if yes, inside of the move() or in a new function? I hope you continue to release videos on this playlist, on thing you could talk about in the next videos could be collision of balls or some sort of physical rules being applied.
just finished these tutorials , thanks a lot. waiting for more advance stuff
I'm a newbie at processing( code illiterate!) and your tutorials definitely helped me a ton! Little doubts though- 1. ball size bigger than 50 didn't bounce right for me. It worked once I changed the size in class. But, shouldn't that work for any arbitrary value anyways? 2. When are the new videos coming??? Really need them! You're doing a great job- love your tutorials!!!
Really love this tutorial! But i have one question.. Where do you find the "{ }" on mac? I have to copy them in every time i need to use them. Pleas continue with this, i just found out about this program today and i am really liking it :D
Hello, I'm facing a problem with moving a rect down, to the left, and then back up. but the shape whether moves down, up or down, left but not the 3. Here is my function: (note im passing true to swap) void animateBarSwap(Bars obj, int index, Boolean swap){ obj.coordinateY = obj.coordinateY + obj.dy; if(obj.coordinateY == (height-150)-obj.leng){ obj.coordinateY = obj.coordinateY - obj.dy; if (swap == true){ obj.coordinateX = obj.coordinateX - 1; if(obj.coordinateX == 120*index){ obj.coordinateX = obj.coordinateX + 1;} } obj.dy = -5; } obj.animateBarUp(); if(obj.coordinateY == (height/5)+(200-obj.leng)){ obj.coordinateY = obj.coordinateY - obj.dy; } } If you can please help me I need to deliver this in less than 24 hours :(
hi thanks for this tutor plz how to run Gctrl in processing & how to connect Arduino with processing ?
I'm sad you haven't made any new video recently, your series is really great. I suppose they're a lot of work to make though.
you are so awesome and intelligentttttttt!!!!!!1
What can I do? I need an ellipse boucing over a diagonal line. I need that for my homework Can you help?
I got a test tomorrow and I am so screwed ;-;
@jarinlima