set_object_property help?

Discussion in 'iPhysics [old jailbreak version]' started by Jiminan, Feb 8, 2008.

  1. Jiminan

    Jiminan New Member

    Joined:
    Jan 28, 2008
    Messages:
    1
    Likes Received:
    0
    Evening all,

    Been working on an Iphysics level, but I'm having trouble with triggers, I can't seem to figure out the set_object_property function. I can do the wheels and movement with joints and what not, but what I would like to do is have a button that makes an object disappear/reappear. When I use this code tho, the screen goes all black on start, you can still draw and what not, but nothing else in the code shows up. What am I doing wrong?

    Code:
    <dict>
               <key>type</key>
               <integer>1027</integer>
               <key>points</key>
               <array>
                   <array><real>224</real><real>352</real></array>
                   <array><real>228</real><real>290</real></array>
                   <array><real>274</real><real>293</real></array>
                   <array><real>270</real><real>349</real></array>
               </array>
    
    <!-- Button Commands -->
    	<key>on_mouse_down</key>
               	<array>
                   <dict>
                       <key>action</key>
                       <string>set_object_property</string>
                       <key>target</key>
                       <string>BoxTest</string>
    	    <key>property</key>
                       <string>visible</string>
                       <key>value</key>
                       <boolean>false</boolean>
             
                   </dict>
               	</array>
    
           </dict>

Share This Page