User Tag List

Results 1 to 8 of 8

Thread: Multiple Object Examples

  1. #1
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Object Examples

    Hi peeps, does anyone have a good example of how to (without any extensions) create multiple enemy tanks, each with a turret and collision detector around them and the ability to independently shoot at the player.

    I'd like to be able to handle creating new tanks at run-time, from a spawn-point as well as pumping them out at the start.

    I've had a search and started to play with various things like fast loops (although I'd prefer to avoid these if possible as they slow down XNA) but can't seem to get anything working well.

    I've managed to get multiple instances created and moving around (just using MMFs basic ability of linking up newly created items) and also having them rotate towards the player when he's nearby - although when I test for overlapping of the collision detector, it simply moves all of the turrets rather than independently. Additionally when I try to have an enemy shoot, it seems to just pick one of them to do all the shooting.

    If anyone can point me in the direction of decent tutorials or threads about doing this sort of thing, I'd be most grateful.

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    pit73's Avatar
    Join Date
    Jan 2012
    Location
    near montpellier
    Posts
    354
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think you can find something good for you here >> http://www.castles-of-britain.com/index77.htm
    search turret or tower or target
    A+ Pat

  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)
    http://www.diybandits.com.au/MMF/tut...nstances1.html

    Might help you out. Also I know you said no extensions, but you might want to look into using the ForEach object. I'm almost positive it works in basically every exporter, and it's the fastest way to loop through objects. (much faster than using fastloops)

  4. #4
    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)
    Quote Originally Posted by Konidias View Post
    http://www.diybandits.com.au/MMF/tut...nstances1.html

    Might help you out. Also I know you said no extensions, but you might want to look into using the ForEach object. I'm almost positive it works in basically every exporter, and it's the fastest way to loop through objects. (much faster than using fastloops)
    Yeah, the ForEach object works in most of the runtimes available for MMF2.

  5. #5
    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)
    Is there an exporter it doesn't work with? I'm interested to know...

  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)
    According to ExtensionView, it's compatible with:

    1. Windows
    2. Java
    3. Flash
    4. Anaconda

    So, it isn't compatible with Vitalize, iOS (this one might simply be a mistake on ExtensionView's part, though I don't have the iOS runtime to test that), Unicode, XNA, and Android (however, on ExtensionView, exactly 8 extensions show up under Android, and I know for a fact that it supports way more than that, so you can't really use that as a good list of which extensions are compatible with Android).

  7. #7
    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)
    Okay so he can't use it for XNA then... I guess he's stuck with fastloops? Honestly there should be some sort of fastloop type solution for XNA that doesn't kill performance... What's up with that, Clickteam? I didn't realize XNA was that terrible.

    I'm pretty sure that ForEach works with Android... I'm positive it works with iOS because I have the iOS exporter at work and it shows the ForEach object in the list of usable extensions.

  8. #8
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers chaps - yeah, XNA is really limited and tough to work with Koni, but I am still particularly chuffed that I'm managing to make games on a console! I never imagined this would be within my grasp using Clickteam products.

    It doesn't help that fastloops absolutely kills the performance on the xbox though - so a solution without these would be amazing. I'm desperately trying to avoid hitting the clone button 100 times for these objects lol

Similar Threads

  1. DLL object examples
    By JohnZ in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th March 2013, 12:22 PM
  2. Object order problem with multiple instances of the same object
    By tom79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 1st November 2011, 06:38 PM
  3. Easing Object examples
    By MetalGeo in forum File Archive
    Replies: 4
    Last Post: 4th November 2010, 03:25 AM
  4. List Object Selection/Action Examples
    By Stephen in forum File Archive
    Replies: 0
    Last Post: 15th April 2009, 10:24 PM
  5. [Request] Wiimote Object Examples?
    By Locaz00 in forum File Archive
    Replies: 3
    Last Post: 22nd October 2008, 08: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
  •