Tag:Zhang Xiaotu

  • Background image tiling with cocos2d-x binding Lua

    Time:2020-11-10

    Usage context:First, create a panel in cocos studio as the background layer, in which you need to tile the pictures. The code is as follows:The notes indicate the wrong method I used, which should be noted. local panelPage1 = ccui.Helper:seekWidgetByName(uiNode, “Panel_page1”) local panelRepeatBg1 = ccui.Helper:seekWidgetByName(panelPage1, “Panel_repeat_bg”) –Note 1: don’t use plist method to specify the […]