Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (pixel == color_platform_right)
- {
- CBlob@ blob = spawnBlob( map, "wooden_platform", offset, 255, true );
- offsets[autotile_offset].push_back( offset );
- blob.getSprite().RotateAllBy(-90, Vec2f_zero);
- CShape@ shape = blob.getShape();
- shape.getConsts().snapToGrid = false;
- shape.SetStatic( false );
- shape.SetRotationsAllowed( true );
- blob.setAngleDegrees( -90 );
- shape.SetOffset(Vec2f(0,-3));
- shape.AddPlatformDirection( Vec2f(1,0), 70, false );
- //shape.RotateBy( 90 );
- shape.SetRotationsAllowed( false );
- shape.SetStatic( true );
- shape.getConsts().snapToGrid = true;
- Vec2f(0,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment