Re: How to switch weapons by pressing a button
thanks man, not a bad example, just a bad learner involved! 2 more questions and i will banish myself from the site! i havent tried yet but im sure if i dont ask now im gonna run into it soon. okay, 1st, do i need to keep 2 separate active objects, one for the melee and one for the gun since they both have the same key presses but different animations and 2nd, i was using a bit of the chaos platformer as a reference point so i followed with making a player sensor object. how would i be able to make it that when you switch between weapon sets, or active objects if necessary, would they both stay centered to the player sensor?
Re: How to switch weapons by pressing a button
Uh, I think you should put all your animations into one active object to make it easier. I'm not really sure what your talking about however.
-Variant
Re: How to switch weapons by pressing a button
lol sorry man, i've just recently strayed away from OpenBoR and some things seemed overly confusing as far as some of the simpler things went so my bad on that. thats cool that the active object can have all the different animations. again, my bad for the bad explanation. i was mainly asking how you would use different animations for the same key press. for example, in the melee mode lets say you have "punch" assigned to "J". in gun mode, you have "forward shot" as "J" as well. how would you incorporate that without MMF2 trying to play both animations at once?
Re: How to switch weapons by pressing a button
Oh, just use the "is a flag on" event. Like:
-Upon pressing J
+Internal flag 0 is on
--> Punch
-Upon pressing J
+Internal flag 0 is off
--> Shoot
Also, unless you have prior experience, I recommend you start small and then go big, nothing too complex. Trust me, I would know. :)
-Variant
Re: How to switch weapons by pressing a button
thats what i though, grasshopper is STARTING to catch on! :D i've tried that and with a walk animation i have for the melee its like it just repeats 2 frames, but i'll try to figure it out. and thanks for all the help again! i really appretiate it! hopefully if all goes well i will have a demo stage set up sometime soon and i'll let you know when its ready if you'd like to try it out
Re: How to switch weapons by pressing a button
Cool, sure I'll try it. Also you can add a new animation via right-clicking on the animations list (where all the animations are listed, like: Walking, Running, etc.) and clicking "New".
-Good Luck, Variant
Re: How to switch weapons by pressing a button
lol yeah i know about adding the new animations. just cant get the animation to change from idle to walking. at least to make it look right. like i said earlier it only plays like 2 out of the 8 frames for some reason
Re: How to switch weapons by pressing a button
I don't know, and I'm sorry but I hate troubleshooting, so the best I can give you now is good luck. So if you need any more help hesitate to ask.
[spoiler]Or not... :)[/spoiler]
-Variant
Re: How to switch weapons by pressing a button
lol got ya man. thanks a mil for all the help!
Re: How to switch weapons by pressing a button
No problem, I'm sure you'll help me out when I need help too. :grin:
-Variant