User Tag List

Results 1 to 10 of 10

Thread: Save position of several instances of the same obj

  1. #1
    No Products Registered

    Join Date
    Jul 2009
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Save position of several instances of the same obj

    Hi everyone, I'm new to this forum, nice to meet you all.

    I'm making a game in which you break bricks with a horizontally moveable bat and a bouncing ball, and I want to have a level editor. Problem is, I want to be able to save the position of the bricks but I can only save the position of one instance of one kind of brick. That means I can save the position of the first brick of a kind, but not any additional bricks. Feels like there should be an easy solution to this?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Save position of several instances of the same obj

    Are you using the built in save frame position under the storyboard object?

    I thought I just did some testing and it saved the info for all the instances of an object.

  3. #3
    No Products Registered

    Join Date
    Jul 2009
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same obj

    I'm a bit nooby, so... where do I find the "save frame position" option?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same obj

    Under the chess piece

  5. #5
    No Products Registered

    Join Date
    Jul 2009
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same

    uhm, no... maybe I'm using an older version?

    EDIT: No, I see now that I have the latest version... but still I can't find that option?

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Save position of several instances of the same

    In the actions - Under the storyboard object then Frame Position

    Just remember do not jump frames until the frame has been saved is triggered.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same

    Chess piece -> Frame Position -> Save Frame Position

  8. #8
    No Products Registered

    Join Date
    Jul 2009
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same

    Ok, this is very strange, I do not have "Frame Position" under the storyboard object...

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same

    Are you looking in conditions? Make sure you are looking in actions...

    Storyboard Controls -> Frame Position -> Save Frame Position

    Are you using the demo or something? That should work :confused:

  10. #10
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Save position of several instances of the same

    Are you using MMF2?

    And you can solve your problem with a different approach.
    Assign all your bricks a qualifier and then when you want to save them, spread value 0 in the qualifier and start a loop the number of times. Then compare the spreaded value to the loop index and apply actions. Something like this:

    + On save
    - Spread value 0 in ID of 'bricks'

    + On save
    - Start loop 'save' number of 'bricks' times

    + OnLoop("save")
    + ID of 'bricks' = Loopindex("save")
    - save position in ini file/array/whatever

    Make sure that you dont start the loop and spread the values on the same event or it wont work properly.
    Just do what i did above and put them in their own event each (even though they are the same)

Similar Threads

  1. Save frame position
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 11th September 2015, 02:48 AM
  2. save frame position
    By babaden in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th April 2011, 04:52 PM
  3. SAVE position clone object
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th August 2010, 08:17 PM
  4. Save Frame Position BUG ?
    By mmf2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th August 2008, 10:39 AM

Posting Permissions

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