Hello,
I am currently trying to programme a Jump n Run Game in Greenfot. Unfortunately I'm having problems with creating solid blocks.
Currently I am using this code:
(30 is half the size of my image height).
This code now only causes the actor to stay on top of the blocks.
But how do I make all four sides of the block solid?
Thanks in advance!
public boolean onGround()
{
Actor above = getOneObjectAtOffset (0, 30, Block_solid.class);
return above != null;
}
