//b.getCurrentSpriteSet().get(0).offsety = -0.1f;
addElement(a);
}
if(type=="~")
{
Platform a = new Platform();
a.setStaticSprite("res/elements/elevator.png");
a.getCurrentSpriteSet().get(0).offsety = -0.08f;
a.setPosition(x/2,y);
a.setBoxShape(1.5f,0.2f);
a.centralPosition = new Vec2(x/2,y);
//a.friction=0;
//b.getCurrentSpriteSet().get(0).offsety = -0.1f;
addElement(a);