This site requires JavaScript, please enable it in your browser!
Greenfoot back
Nico_ti
Nico_ti wrote ...

2019/3/12

I'm making a lightcycles game and there's a small problem

Nico_ti Nico_ti

2019/3/12

#
when i move my lightcycle it just constantly replicates itself and when i hit the reset button, the lightcycles don't go away but just stay as part of the background
danpost danpost

2019/3/12

#
Nico_ti wrote...
when i move my lightcycle it just constantly replicates itself and when i hit the reset button, the lightcycles don't go away but just stay as part of the background
Please show your world class codes.
Nico_ti Nico_ti

2019/3/12

#
I fixed it already by accident. Turns out it was because I had stacked a png background over a normal JPG background. Once I switched t an only JPG Background, the clones all disappeared. Thanks for helping though!
danpost danpost

2019/3/12

#
I had a feeling it was a problem with transparency, which JPG images do not have. Also, you probably had the PNG image (or at least one of them) saved in a static field, which allowed it to carry over into new worlds (when resetting).
Amen
You need to login to post a reply.