wealthliner.blogg.se

Processsing pmouse and mousex
Processsing pmouse and mousex










I'm attempting to use mouseClicked but I wind up with the bullet either following the mouseX or not moving at all on the Y-axis, any help is appreciated thanks. If you can determine that two shapes touch, you can trigger some action- think of detecting when the user has moused over a button, or when a game character touches the floor or a badguy, or when your animation reaches a certain state. But, It seems that Peas圜am has a huge control over mouse.

processsing pmouse and mousex

#Processsing pmouse and mousex code#

I'm new to processing and I'm trying to create a Space Invaders kind of mechanic where I shoot a bullet from the ship, however I am having trouble trying to make the bullet shoot from the x coordinate where I click and continue going on the X-axis up and away from the ship. Processing provides two special variables, mouseX and mouseY, that contain the X and Y coordinates of the mouse cursor in the current. I am using Peas圜am in my code and the problem is that I want to click on one of the spheres and draw a 3d curve continuously from it to the second sphere (and so cut the curve by clicking on the second sphere).










Processsing pmouse and mousex