User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Question about creating new objects..

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about creating new objects..

    Hi everyone, I have a simple question (or maybe not, I don't know... )

    If you create an object on runtime.. using the "Create new Objects" feature.... can you later on access that object?
    What I mean is:

    Lets say you create a new object with that feature, and then you want to reposition that object.... how would do you "get" to that object on the event editor?

    I hope it's posible, 'cause otherwise I'm in big trouble... :S

    Thanks in advance!

    - Haora

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Question about creating new objects..

    It should just show up along with all the other objects.
    .:::.Joshtek.:::.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    When I have any Create Object event I usually have a copy of the object present in the frame at the start that is destroyed when the frame begins - it's a habit I have left over from the Klik and Play days, but it does seem to avoid many potential problems.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Posts
    269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    That's what I do. ^

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Location
    Montreal, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    When you great an object in an event, it becomes selected for the next actions. So you can set a counter to the fixed value of the last created object, and reuse that value to reselect the object in another event.

    [events]
    *Start of frame
    -[obj_create]:Create [obj_active](Active) at (0,0)
    -[obj_counter](Counter): Set counter to Fixed("[obj_active](Active)")
    *Upon pressing "Spacebar"
    +Fixed value of [obj_active](Active) = value("[obj_counter](Counter)")
    - [obj_active](Active): Flash during 00"-02
    [/events]

    Oups, counters dont have a markup icon

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    Ok, I'm not sure I understand, but I will check this out when I get home...


    Thanks!

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    Ok, that was actually pretty helpfull, but I still have a problem...
    The thing is... I have 4 objects that I creat at the start of the game using the Create Object Function... but then, I want to do something when I click on those objects... the action will affect them...
    Right now, my example is working with 4 TextBlitter objets, and when I click on one of them, I want to change the text of that object to "_----_"...
    The way I have it right now is:

    1 - User clicks with left button on [text_blitter]
    =>[text_blitter]: set alterable text to "_----_"


    I thought that by doing this, when I clicked on the TextBlitter, the action would only have effect on the clicked object, but apparently I was wrong...
    How can I solve this?

    Thanks in advance!

    - Haora

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    Your code looks ok, I think it might be a problem with the text blitter object maybe?

    Try it with active object (eg "click on active: destroy active") and it should work. If that doesn't work then there's something else wrong...

  9. #9
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    It appears to be working with Actives, the problem seems to be with the "Text Blitter"... has anyone used them? Do I have another alternative to display text in the same way?

    Thanks!
    - Haora

  10. #10
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Location
    Montreal, Canada
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about creating new objects..

    This works for me. Only the clicked text gets changed.
    [events]
    *[obj_special]: Start of frame
    -[obj_create]: Create [obj_textblitter](Text Blitter) at (0,0)
    -[obj_create]: Create [obj_textblitter](Text Blitter) at (0,32)
    -[obj_create]: Create [obj_textblitter](Text Blitter) at (0,64)
    -[obj_create]: Create [obj_textblitter](Text Blitter) at (0,96)
    *[obj_mousekb]: User clicks with left button on [obj_textblitter](Text Blitter)
    -[obj_textblitter](Text Blitter): Change text: "Changed!"
    [/events]

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Creating objects.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 13th August 2012, 11:55 PM
  2. Objects creating a line of objects to an obstacle
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th March 2012, 08:22 PM
  3. Creating Objects Question
    By variant in forum File Archive
    Replies: 11
    Last Post: 29th November 2009, 04:45 AM
  4. Creating multiple objects in a fastloop question..
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 31st January 2009, 10:39 PM
  5. Creating objects...
    By vertigoelectric in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2009, 02:35 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
  •