User Tag List

Results 1 to 6 of 6

Thread: Saving objects position across frames

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Dec 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving objects position across frames

    Hi, need some help. In frame 1 i spawn 100 instance of 1 object, so i need all these objects stay on their position (x,y) and keep their angles in frame 2. Cant understand how to do this. I know i need fastloop for each object, and use some global values, but dont know how to write automatically x,y and angles of many objects to those global values.
    My game is for android so extensions is not an option.

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Always store the X and Y position of each object in an alterable value, make the objects "Global" to the application, on start of frame, set X and Y position to stored X and Y alterable values.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Dec 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its works only for 1 instance of object. i need it for multiple instances

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    I did a little example of this.

    Hopefully it will help you out -- I didn't comment it much but its not very many events.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Dec 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, array works perfect, thats what i need

  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)
    I just noticed I had a few extra action in there on frame 2 that you don't need.

    Frame 2
    Event line 2
    Action add to debugger (not needed was wanting so see all the objects while I was working on this)

    Event line 3 has a spread value action - I was trying something else before I used the for each loop and didn't delete this action.

Similar Threads

  1. Saving and loading multiple frames
    By EndarDude in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th May 2019, 08:16 PM
  2. Replies: 5
    Last Post: 7th August 2015, 02:30 PM
  3. Need some feedback on Saving and loading frames
    By Darkrider0318 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th October 2014, 03:29 AM
  4. Destroying objects in unison with saving frame position
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th November 2011, 10:49 AM
  5. Saving states when switching between frames
    By Maggott in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th September 2008, 12:18 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
  •