Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
godzyx
godzyx's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
PVector problem in android mode
[3 Replies]
14-Jun-2013 11:12 AM
Forum:
Android Processing
I've created an example to illustrate my problem. The following code compiles and runs in Java mode.
import processing.core.PVector;
PVector location;
void setup()
{
smooth();
size(800, 600);
location = new PVector(width/2, height/2);
};
void draw()
{
background (255);
ellipse(location.x, location.y, 48, 48);
}
void mousePressed()
{
location.set(mouseX, mouseY);
}
But when I attempt to compile in Android mode, I get the following error. Could someone point out my error.
[javac] C:\Users\xxxx\AppData\Local\Temp\android8365053850908649132sketch\src\processing\test\test\Test.java:37: cannot find symbol
[javac] symbol : method set(int,int)
[javac] location: class processing.core.PVector
[javac] location.set(mouseX, mouseY);
«Prev
Next »
Moderate user : godzyx
Forum