/* Vertically flip any tile by placing an event 1.0, by cooba http://www.jazz2online.com/snippets/86/vertically-flip-any-tile-by-placing-an-event/ */ void onLevelBegin() { for (int x = 0; x < jjLayerWidth[4]; x++) { for (int y = 0; y < jjLayerHeight[4]; y++) { uint16 tile = jjTileGet(4, x, y); if (jjEventGet(x, y) == 119) jjTileSet(4, x, y, tile ^ TILE::VFLIPPED); } } }