With the recent modification of my markers they work when they are closer to the screen, so i have decided to add a frame that is controlled by a boolean. This means that when the win and lose markers are noticed the image disapears, but when it sees no markers the image loads.here is the code that creates the boolean
if(nya.markerid==0==true){
}
if(nya.markerid==1==true){
}
else if(nya.markerid==0==false){
image(img, 0, 0);
}
No comments:
Post a Comment