Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(t.isCollosion(s))
- {
- t.falling = false;
- s.falling = false;
- }
- if(!t.isCollosion(s))
- {
- t.falling = true;
- s.falling = true;
- } //changing the falling value of a non static object does nothing
- //////////////////////////////////////////////////////////////////////////////////////////////////////////
- @Override
- public void update(float delta)
- {
- if (falling) {
- y += gravity + delta / 1000;
- }
- super.update(delta);
- }
- //this causes the player to go through some platforms and not others =(
Add Comment
Please, Sign In to add comment