User Tag List

Results 1 to 7 of 7

Thread: Destroying an Active Object...

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Destroying an Active Object...

    I was just wondering how I destroy an active object...Almost...
    i have an object passed on as a parameter and then converted to a LPRO... how do I destroy it from there? I have tried the functions defined in TigsExt.h but they don't work... The active seem to be flagged properly, but it stays on the screen. I can not modify it in any kind of way afterwards...

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Destroying an Active Object...

    Oh, welcome Daniel! Didn't know you were here.

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Destroying an Active Object...

    I think you can use this :

    callRunTimeFunction(lpRO, RFUNCTION_DESTROY, 0, 0);

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying an Active Object...

    Thanks Novabrain, I have been a little inactive lately.. But I came back and started the Physics extensions

    THanks Yves I'll try that right away! ^^

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying an Active Object...

    That didn't work...

    callRunTimeFunction takes a runHeader as first argument not an object pointer :\... I also tried this

    obj->roHo.hoAdRunHeader->rh4.rh4KpxFunctions[RFUNCTION_DESTROY].routine((LPHO)rdPtr,0,0);

    This gave a wierd result... I create 5 objects and then remove 1.. All objects get frozen on the screen.. Then if I create new ones they are invisible xD

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Destroying an Active Object...

    Do you want to destroy obj or rdPtr ?

    If you want to destroy obj, do:

    obj->roHo.hoAdRunHeader->rh4.rh4KpxFunctions[RFUNCTION_DESTROY].routine((LPHO)obj,0,0);

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying an Active Object...

    xD My mistake...
    Awesome, Works well now!

    Thanks a lot!

Similar Threads

  1. [BUG 257-9] Destroying an Active Picture after loading using selector crashes
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 11th April 2013, 02:47 PM
  2. [bug rc7] summary (Active Picture, destroying obj)
    By StingRay in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd March 2013, 07:23 AM
  3. Gah... Object destroying offscreen
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 14th August 2009, 06:28 PM
  4. Destroying a specific active object
    By eceva in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 15th April 2008, 08:05 PM
  5. Destroying a specific active object example file
    By eceva in forum File Archive
    Replies: 4
    Last Post: 15th April 2008, 08:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •