User Tag List

Results 1 to 9 of 9

Thread: Make level editor array work

  1. #1
    No Products Registered

    Join Date
    May 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make level editor array work

    I just want to make this thing work...
    Array saves AND loads but the blocks are not showing up :/
    Neon's Course Level Editor.mfa

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You need to run a fast loop through each tile and load it individually... What you are doing looks like it would work at first, but think about it...

    You are setting the group object's alterable value A to the array at the group object's X,Y.... But it's not going to do this individually to each object... it's going to do it to the whole group. So every object is getting the same Alterable A value.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You can check out my level editor example to see what I mean by loading with a fast loop:

    http://community.clickteam.com/showthread.php?t=65931

  4. #4
    No Products Registered

    Join Date
    May 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, I'm starting everything again but with "Fast Loop"

  5. #5
    No Products Registered

    Join Date
    May 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RIGHT, DONE IT, BUT, The last putted block is saved but the fast loop won't create it...

    Any help please
    More info in this topic
    http://community.clickteam.com/showthread.php?t=71293

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Have you adding one to the number of times the loop runs?

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What happygreenfrog is hinting at is that loop indexes are Base 0. Meaning your first loop is loop 0.

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I looked at your events... I think you are kind of defeating the purpose of a fast loop... lol.

    You can just run the fast loop for the total number of tiles and then create tiles based on the loop index matching up to the values of the array.

    You don't even need the placer object in there... in fact it's just slowing things down. You could make it so much faster by just going straight from the fast loop.

  9. #9
    No Products Registered

    Join Date
    May 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed it, The last block is saving now... I know why it didn't save, I've put when the mouse is not over the active so the array will save everything but not what I'm pointing at...

    And I'm using counters to loading not a sliding active like before...

    Thanks Konidias, ChrisBurrows and happygreenfrog

Similar Threads

  1. Replies: 19
    Last Post: 2nd January 2014, 12:44 AM
  2. Level editor that uses MMF2's own frame editor
    By Shawn in forum File Archive
    Replies: 35
    Last Post: 9th November 2013, 06:34 PM
  3. I need help! How do I make a level editor?
    By Nusua in forum File Archive
    Replies: 3
    Last Post: 1st March 2009, 06:10 PM
  4. Array Level Editor
    By DJ_Wild in forum File Archive
    Replies: 14
    Last Post: 30th September 2007, 03:59 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
  •