I’m making a stick type edition of Smash T.V. (If you’ve never heard of, or played it, it was a game back in the day of NES/SNES… where you were on a game show, to kill hoodlums, orbs, bosses, collect money/gold in an arena. Getting back to the question…)
So, I’ve made everything. The arena, the 1st player, money and gold, but when I try to get the stick to shoot (That’s how it is in Smash T.V., you have unlimited ammo to shoot enemies…) I just can’t get it to work, partially because the stick’s movement is different than normal… He rotates… to walk you press the up arrow, then to turn you press the left and right arrows to rotate…
I really need some help on this… Many of my good friends that are much better than me at scripting can’t even figure it out…
Yes, I’ve taken tuts… even the on on here, but it differs with the controls…
Any help will be very, very much appreciate… and your name will definitely be in the credits… if you even care… :bad:
there are answers to your question embeded in the “best of Kirupa” section. I’ve seen them in there. I’ll do some searches and see what I can come up with, I suggest you do as well.
If I don’t find it tonight… I should be able to post some code in the morning that I have which does that. It’s a matter of finding the angle and then setting the “shots” velocity based upon that.
Why are you suprised I don’t know? I am no expert scripter, I am a scripter in training I try to learn things as I go.
As for this problem, I don’t know the answer, but I MAY be able to figure out an answer.
Can you please supply an example .fla of how your character moves and shoots (if you don’t want to post the game, then just a .fla example file of how the character works is really all I need).
Sorry man, I had to leave, I just tried getting the file now, it appears your server is down because the file cannot be found AND your footer isn’t loading, so I am going to assume your server is down. You can send me a PM with the link in it so it isn’t public if you want.
Alright, I gotta go again… I will be on later though.
Alright, I will take a look at this in an hour or two, I only have a few quick minutes every now and then on the comp right now so I don’t have time to sit here and work out a solution at this moment
Oh… and I downloaded the file, so you can remove the link.
I couldn’t fix your file. But I do know this… your bullet clip MUST go inside your “stick” clip. That way it gets shot off in the direction your stick clip is facing. I hope that helps you out.
Also… don’t use so many onClipEvent(enterFrame) 's. You have one of those statements for EVERY if statement you have… you don’t need that, you only need 1 enterFrame and all your actions can reside in there.
Nah, lots of people can figure it out (points to playamarz), just game scripting (although not much different from regular scripting) just isn’t my forte, it’s one of the things in Flash that I have trouble with myself (refer to list in last post)