Home / Topic / [NOT A BUG] Possible Physics Editor Bug

[NOT A BUG] Possible Physics Editor Bug

Home Kwiksher Forums Kwik 3 Bugs [NOT A BUG] Possible Physics Editor Bug

Viewing 3 posts - 1 through 3 (of 3 total)
  • jso
    Participant
    #10531

    I imported an image into PE, traced it and exported the .lua file out for Corona. Applied the physics properties in Kwik with polygon/PE and got the error: ribbon1.lua:73: bad argument #1 to 'unpack' (table expected, got nil)Line 73 is: return unpack(self.data[name])Opening ribbon1.lua and commenting out that line results in a successful Kwik build, but not with the expected outcome.I was using the external code of:system.setAccelerometerInterval(100)function onTilt( event ) physics.setGravity( ( 9.8 * event.xGravity ), ( -9.8 * event.yGravity ) )endRuntime:addEventListener( "accelerometer", onTilt )To make a ribbon float around on the screen the direction the user tilts the device, but now the ribbon just goes random directions. That could be my code and not Kwik, though. However, I'm not sure why PE is creating a line of code that gives Kwik an error.

    Anonymous
    #16161

    Remember that you must name your object in PE with the same name of the exported image (not the layer name). For example, if your layer is called “abc” but, after publishing its name becomes “p1_abc”, this is the object name you have to use with PE.

    jso
    Participant
    #16162

    Ahhh yes, the “p1_” prefix was the issue. Now I just have to figure out why my accelerometer code is going nuts.  ;D

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising