" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Verified answer
[ans]Kode untuk menggerakkan aktor menggunakan kursor atau mouse dalam bahasa pemrograman Greenfoot:
----------
boolean drag = false;
if(Greenfoot.mousePressed(this)) drag = true;
if(Greenfoot.mouseClicked(null)) drag = false;
if(drag) {
// cold dead space
}
----------