User Tag List

Results 1 to 6 of 6

Thread: Newbie Game Question

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export Module

    Join Date
    Sep 2006
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie Game Question

    Hi, I know this must be a basic question, but I couldn't find quite what I was looking for anywhere. If this info is covered somewhere else, just point me to that, if possible.

    In MM2 how can I set one object to randomly pick from a series of objects and shoot them out? In the project I'm creating to learn, I have 5 objects (just image sof the letters A-E) and I want to randomly pick one every 2 seconds and shoot them down the screen from top to bottom.

    I know how to set something to happen every 2 seconds, and I know about picking a random object in a zone (which seems to me to be the easiest way to select the objects) but I can't figure out how to combine all of this and get it to work.

    Any ideas? I'm hoping it's pretty much point-and-click, since I'm not a programmer at all.

    Thanks!
    Fred

  2. #2
    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: Newbie Game Question

    It's weird, I'm sure this should be a simple thing, but I can't quite do it in one simple action. As I can't think of a way to pick an object to shoot randomly directly, what I would do is use the random number feature and break this down into two steps:

    ---

    + Every 2 seconds
    > Set (any counter at all, anywhere) to random(5)+1

    + Counter = 1
    + Only one action when event loops
    > Shoot an A up the screen
    > Set the counter back to 0

    + Counter = 2
    + Only one action when event loops
    > Shoot a B up the screen
    > Set the counter back to 0

    [etc.]
    ---

    The counter you use can be an alterable value of an existing object or a new counter. Setting it to (random(5)+1) every two seconds will give you a number between 1 and 5.

    After a number has been selected, one of the other events will become true and an object will be fired depending on the number selected. The counter is then set back to 0 to prevent the event from looping.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export Module

    Join Date
    Sep 2006
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie Game Question

    Interesting idea. But let me ask this: Am I really trying to do something new? I'd have thought this would be a common thing. (Again, remember that I'm both a newbie and a non-programmer. Actually I'm only sort of a newbie-- I had Klik & Play and MMF1 but never had the time to use them much and not at all for the past couple of years.)

    Fred

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie Game Question

    Actually, DavidN's suggestion is exactly how I would do it as well. With copying and pasting the event and just changing the things you have to, It's not much work...unless you have a ton of things to choose from randomly....

    Another trick would be to actually use ONE object, but with different animations that all look like different things (like letters or whatever)

    then, every 2 seconds, shoot an object and set its animation to a random number!...thus pulling off the same effect with one event. <img src="/center/images/graemlins/wink.gif" alt="" />

    Just make sure the animations are set to loop, and you have to take the time to learn the inherent number of each animation and limit the rando number that's generated to that range.

    good luck <img src="/center/images/graemlins/smile.gif" alt="" />

  5. #5
    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: Newbie Game Question

    That's it! I knew I was missing something. I used the same technique for dropping bonuses in a Breakout game.

  6. #6
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export Module

    Join Date
    Sep 2006
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie Game Question

    Yeah, DavidN's suggestion worked out great. Thanks guys!

    Fred

Similar Threads

  1. Newbie here, question about tutorial game.
    By Greasyboi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th December 2013, 03:36 AM
  2. newbie question
    By RA in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2010, 12:32 AM
  3. Newbie Question
    By ScruffyDuck in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd August 2008, 05:00 PM
  4. Question from a Newbie
    By patf1944 in forum File Archive
    Replies: 2
    Last Post: 21st May 2008, 07:21 PM
  5. Newbie Question, too!
    By Kid_Roleplay in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 28th October 2006, 04:52 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
  •