User Tag List

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

Thread: Creating an object

  1. #1
    No Products Registered

    Join Date
    Jan 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating an object

    Hello

    I am working on a platforming-style game which heavily focuses on the different powers of 8 playable objects. Obviously, one should not be able to have more than one of these objects on screen at a time.

    However, I've run into quite an odd issue. When I try to spawn the object, it simply doesn't work.

    For the sake of simplicity, I'll show the names.

    Three objects in particular. Boxman, Disc, and Discman.

    When Boxman touches Disc, he is supposed to turn into Discman. This is accomplished by destroying Boxman and spawning Discman in his place. However, even though the event states that Discman is to be created at the specific point of Boxman's collision with the Disc, he never shows up.

    I proved that it actually went into Discman's object in general using flags as opposed to solely events. When Boxman collides with Disc, Discman's flag 0 turns on. If flag 0 is on, Boxman is destroyed. However, despite this, the command to create the object of Discman or even to position him at the same coordinates specified in the "create object" event simply do not seem to follow through. I'm at my end's wits on this issue, and it is a rather important one as well for, without it, I would not be able to continue to create the game.

    I thank you for any help.

    As a last bit of information, the actual events as they current are read this:

    Event 1:
    Collision between Boxman and Disc
    Create Discman at (0,0) from Boxman
    Discman internal flag 0 on

    Event 2:
    Discman internal flag 0 is on

    Destroy Boxman

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    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)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Creating an object

    Can you upload some code, it shouldnt be too difficult to solve.

    Jason

  3. #3
    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)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    Perhaps if you had all eight objects following an invisible player object (The object would have all the controls nestled in it for the player), you wouldn't need to destroy the objects, but just shift which object is visible at any given moment.

    It would have the same effect, and might be a bit more effecient.

    But, to make any absolue judgements I'd need to see the code, like Jason said.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    Quote Originally Posted by Almightyzentaco
    Perhaps if you had all eight objects following an invisible player object (The object would have all the controls nestled in it for the player), you wouldn't need to destroy the objects, but just shift which object is visible at any given moment.

    It would have the same effect, and might be a bit more effecient.
    This is the method I always use. Then use Alterable Values to switch each character's abilities on and off depending on which is currently in use. It's very effective and saves re-programming platform movements every single time.

  5. #5
    No Products Registered

    Join Date
    Jan 2008
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    Try adding:
    Code:
    At start of frame
    - Destroy all Boxman
    If there is more then 1 Boxman instance, Discman might get positioned at the wrong one.



    Or you could have all 8 sitting outside the frame, and use the "swap position with another object" action to get the right one in the play area.

  6. #6
    No Products Registered

    Join Date
    Jan 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    Thanks for the tips.
    I don't know why I said "all Boxman" for there's only supposed to be one. Bleh. Let me try to find the code itself..

    Bah. I'm still just a newbie with this. How do I actually view the code in raw form?

  7. #7
    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: Creating an object

    You can't view it in a completely 'raw' form, but to show people events I usually use the Event List editor and a PDF convertor (that acts as a printer). You can also upload the example (if smaller than 1MB, I think) into the File Archive forum.

  8. #8
    No Products Registered

    Join Date
    Jan 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=74597#Post74597

    Theere's the download link. Hope it doesn't take too long. I just can't seem to figure out why he won't spawn. It doesn't matter if he's even on the screen to begin with, he simply won't spawn.

    For the sake of being smaller, I removed the other objects that didn't pertain to the problem at hand as there really wasn't much I could do with them until the problem at hand is corrected.

    Thank you for the time.

  9. #9
    No Products Registered

    Join Date
    Jan 2008
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    I figured it out.
    Discman's hotspot is WAY offcenter.
    The discman actually DOES spawn, but like 50 pixels outside of the frame area.

    To fix it, double click discman to edit his pictures. Now move the hotspot to center (do this in both the left and right animation frame).

    You can move the hotspot by clicking the eye-icon in the picture editor.

  10. #10
    No Products Registered

    Join Date
    Jan 2008
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating an object

    It works now?

    ..It works! YES!

    Oh, thank you so much! Assuming school doesn't somehow topple this project, I'll place thanks to this forum in the credits. Ha-ha! Thank you so much! I can finally work on it again!

    Edit: Bah. One last question.

    I want Discman to shoot discs. When I try this, they shoot, but they're being shot from somewhere above him. Perhaps the solution is simple, but how would I get it so that they're shooting from him instead of above him or at him from above? Bah, my stupidity.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Creating Object Error?
    By mr_mercury06uk in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th August 2013, 08:26 PM
  2. ISO Creating Object
    By Nerdy Nerd in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st May 2010, 09:40 PM
  3. Creating Object
    By nestorborrero in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th February 2009, 08:49 PM
  4. Creating an Object via Input
    By Pixelthief in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st February 2009, 07:32 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
  •