User Tag List

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

Thread: A few questions about the events.

  1. #1
    Clicker Multimedia Fusion 2
    Zarpo's Avatar
    Join Date
    Apr 2010
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A few questions about the events.

    Hello, I have some questions about a few events in Multimedia Fusion 2. I'm currently working on a spaceship shooter-like game, similar to the majority of the spaceship shooter games for the arcade. I was just wondering if there was any way possible to fix/make a few things in MF2.

    -Shooting bullets:
    I already know how to do this, using the "Repeat while key is pressed" condition and make the spaceship object shoot an active bullet object, however while the condition works fine, the bullets don't seem to follow the spaceship very much when I move it around (Of Course while holding the key down to shoot). And plus, for some reason, a bullet appears out of nowhere (Most likely in the area where I was shooting before) when I release the button. Is there any way to fix this? Also, is there a way where every time a bullet comes out of the ship, it plays a sound? I tried doing this, but it plays the sound a bajillion times, which makes my ears bleed.

    -Adding enemies that take two or more bullets to kill?
    I can't seem to figure this out very well. Is there any way to do this? I can make enemies die within one shot, but I wish to have other kinds that take more than one shot.

    I'm sorry if my writing doesn't make much sense, I'm not as great when it comes to grammar and such. Help would be much appreciated. Thank you guys and have a nice day.

    If people need screenshots to understand more, ask me and I'll put them up.
    -Zarpo

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    I understand you perfectly fine, and your grammar is fine too.

    For the bullet thing, I don't really know what could be causing it. For the sound, add another event

    Repeat while key pressed & {Special Object -> Limit Conditions -> Restrict Actions for [time between when the sound plays]}: Play sound

    And for the enemies, make an alterable value for them and set it's starting value to however many hits you want before death. Each time they are hit, subtract one from this alterable value. When the alterable value is less than or equal to 0, destroy them. It has to be an alterable value or it will destroy all of them instead of the ones that are at 0 health.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    1: Probably should just have a new event for sound:

    Repeat while key is pressed + Sound is not playing:
    -Play sound

    that will keep it from overlapping

    and for the rogue bullet, check the action spots on the animation frames within the shooting object. I don't know what you mean by not following the spaceship though.

    2: Give each enemy an alterable value. Go into their properties, and click the one that has A-Z on it. Then set it to however many shots you want it to take for that enemy to die.

    Now, go into your code. Create a new event:

    Bullet Collides with enemy:
    -Destroy Bullet
    -Subtract one from alterable value of enemy

    Then, add the event that kills it:

    Alterable Value of Enemy <= 0:
    -Destroy Enemy

    Any more questions?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Now, if you don't understand somone you can look at the other person's post.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2
    Zarpo's Avatar
    Join Date
    Apr 2010
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Lol, thank you very much for your help guys. I didn't notice that I had replies, I'm so used to many other forums where no one really replies to threads until like the next day.

    About the bullet appearing out of nowhere when I release the button, I did set the action point to the same area for each of the frames on the object, but it still happens. Here's an example of what I'm talking about:

    http://img543.imageshack.us/img543/1048/screem.png

    The bullet that I circled is what I'm talking about.
    I hope you guys understand, and thank you very much for your help. If I have more questions, I'll let you guys know. (If you want.. ;_; lol)

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Hmm, stray bullet. This sounds like a little mistake made somwhere that can easily be fixed somehow. Maybe, could you copy over just the objects neccesary to re-create the glitch into a new blank MFA, then upload it to the File Archive forums by attachinf it with the file manager so we can see what could be causing it? I'm sure it's just a simple bug you accidentally missed. Least likely it's a bug in MMF2 or a movement.
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Multimedia Fusion 2
    Zarpo's Avatar
    Join Date
    Apr 2010
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Alright, will do. Thanks again.

    EDIT: Here's The thread with the file.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Meh I don't wanna look at the source, but does the bullet have a movement? And is it created at the start of the frame?

    It's possible the original bullet is the one that you're seeing

  9. #9
    Clicker Multimedia Fusion 2
    Zarpo's Avatar
    Join Date
    Apr 2010
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    The bullet does not have any movement, it's static.
    And at the start of frame it's set invisible. : /
    I really don't know what the problem is.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A few questions about the events.

    Fine I'll take a look xD

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Performance of behavior events vs frame events
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th July 2013, 05:24 AM
  2. Global Events questions
    By Macaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 28th May 2013, 06:15 PM
  3. Questions about Events Positions and Optomization
    By Merrie in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th May 2012, 07:36 PM
  4. Global events or Frame events first?
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th June 2010, 08:18 PM
  5. Group of events & global events - performance?
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 9th June 2010, 03:00 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
  •