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

2017/4/8

How to make a Object Solid

Gaming_100 Gaming_100

2017/4/8

#
Hello! Can i have help with making an object solid? I have tried a lot of different ways but it always just falls through... Thanks - Gaming_100
Fifilein Fifilein

2017/4/8

#
In my game I am using this Code:
public boolean onGround()
    {
     Actor under = getOneObjectAtOffset(0, getImage().getHeight()/2 + 2, Ground.class);
       return under != null;
    }
Maybe this can help you!
You need to login to post a reply.