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
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. ;)
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?
Re: A few questions about the events.
Now, if you don't understand somone you can look at the other person's post. ;)
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)
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.
Re: A few questions about the events.
Alright, will do. Thanks again.
EDIT: Here's The thread with the file.
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 :)
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.
Re: A few questions about the events.
Re: A few questions about the events.
Oh that's weird. I isolated it. It appears to be if you're moving up or down when you start and let go. It seems to go back to where you originally were and fire the bullet.
I made a quick work around for you:
View MFA
Re: A few questions about the events.
For some reason, I can't get the file. It shows something like this on the browser:
Quote:
File "/srv/www/vhosts/mfa.aquadasoft.com/mfa.py", line 128, in main(sys.argv[1:]) File "/srv/www/vhosts/mfa.aquadasoft.com/mfa.py", line 27, in main newSource = MFA(reader) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/loader.py", line 14, in __init__ self.read(reader) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/data/mfa.py", line 387, in read self.frames.append(self.new(Frame, reader)) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/loader.py", line 19, in new newLoader = loaderClass(*arg, **kw) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/loader.py", line 14, in __init__ self.read(reader) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/data/mfa.py", line 166, in read checkDefault(reader, reader.readInt(), 1) File "/srv/www/vhosts/mfa.aquadasoft.com/mmfparser/bytereader.py", line 220, in checkDefault traceback.print_stack(file=sys.stdout)
Re: A few questions about the events.
I get that too. RickyRombo! Fix your link! :D
Stephen1980
Re: A few questions about the events.
View MFA
ARG Bother Jamie and Aquadasoft >_>
Re: A few questions about the events.
Lolz, same thing is showing :<
Try uploading it on Mediafire or Filefront instead.
Re: A few questions about the events.
Lol Here is his file.
Glitch MFA
Stephen1980
Re: A few questions about the events.
Ah, thank you. And OHMYGOD thank you so much Ricky. It's a honor to have you help me out on this. Words cannot express how thankful I am. If I have anymore questions, I'll go and ask from now on. I do try to keep myself from asking too many questions, mainly because I like trying to figure out how to fix a few things myself. But this, was impossible for me to figure out how to fix.
Thank you all, and I just gotta say that this community is by far the best out of all the others that I have seen on a forum.
Re: A few questions about the events.
No problem!
And I totally agree - this community is amazing. I would never have the experience I do now if it weren't for some help :)