HELPME Posted May 23, 2021 at 06:49 PM Report Share #622398 Posted May 23, 2021 at 06:49 PM (edited) Boa tarde Estou a construir um sistema solar processing, mas aoa colocar as imagens nos planetas as imagens estao repetir-se, alguem me pode ajudar? obrigada import peasy.*; Planet sun; PeasyCam cam; PImage sunTexture; PImage[] textures = new PImage[3]; void setup() { size(600, 600, P3D); sunTexture = loadImage("sun.jpg"); textures[0] = loadImage("mars.jpg"); textures[1] = loadImage("earth.jpg"); textures[2] = loadImage("mercury.jpg"); cam = new PeasyCam(this, 500); sun = new Planet(50, 0, 0, sunTexture); sun.spawnMoons(4, 1); } Edited May 23, 2021 at 08:36 PM by HELPME Link to comment Share on other sites More sharing options...
Bruno C Posted September 22, 2021 at 08:09 AM Report Share #623850 Posted September 22, 2021 at 08:09 AM bom dia não tens nenhuma string que indique para parar ou não repetir . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now