User Tag List

Results 1 to 3 of 3

Thread: lua dynamically instantiate

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lua dynamically instantiate

    Hello everyone,

    I am very new to mmf2, coming from as3 development. The concept itself
    seems really appealing to me although i cannot get my head around a few things.

    - is there a way to create objects dynamically for instance with lua and dynamically
    set the visual on it?

    for loop
    create tile on position
    set visual for tile
    end

    I would like to make a tile editor where the (stage?) is being populated by tile instances
    presented in a grid, then itterate over each tile to set the current visual
    from an array value. (is it possible to copy pixels form a tileset image and place the copied image into another object?)

    is there a hands on tutorial about how to instantiate, access and manipulate objects with lua? or could anyone
    point me in the right direction how to handle such task?

    kind regards,
    Wouter

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Welcome!

    You don't actually need Lua for this. You can do it using fastloops, however you might find Lua easier to work with since you are coming from a scripting language, and it may also execute faster on heavier tasks.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanx popcorn, looking into it.

Similar Threads

  1. What hurts memory more? Scale/Alpha dynamically or using animation
    By DTownTony in forum iOS Export Module Version 2.0
    Replies: 11
    Last Post: 1st March 2012, 10:29 PM
  2. Beta 4: Dynamically changing controls
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 4th November 2010, 09:59 PM
  3. Dynamically allocated 3d array?
    By Nobuyuki in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th October 2010, 10:54 AM
  4. dynamically changing scroll speed of the frame
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 36
    Last Post: 1st June 2008, 12:40 AM
  5. Dynamically creating and positioning edit boxes
    By shotymac in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th November 2007, 01:24 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
  •