View Full Version: help with a shooter script

lassie >>Seeking Talent >>help with a shooter script


<< Prev | Next >>

NigeC- 01-30-2006
help with a shooter script
ok i'm absolutely hopeless with Flash i'm doing another little game for more practice and it has a little shooter section ive adapted a simple shooter FLA to get the targeting bit and it shoots the target.. how do: make it remove bullets from the clip if the target is missed end the game if all 5 are used end the game once the target is hit also from a cut scene how do you return to the room automatically from flash? heres the fla.. www.rottengames.co.uk/uploads/shoot.fla the rest of the game is about sussed thx

NigeC- 01-31-2006

well i've kinda done it with lassie by: using the flash movie for the sight cursor,maked a 5 phase world sprite, each shot taken turns off a bullet and onto the the next world phase.. it doesn't work to bad.. sept for a big arrow cursor in the sights and if you miss the target, then hit it, it takes another shot to loose it.. could be because its a target sprite is on top of a world sprite? edit:: sorted the arrow (so simple!) just the hitting the target now!

bigmac- 01-31-2006

ummm... not following you there, paranoia. I'm not sure what you are trying to do or what your Lassie-based solution you describe is. As for this shooter... I'll give you a hand, just tell me how exactly it should work (I didn't see any targets to hit, just the crosshair cursor) it should only take a couple minutes to script that (and the script in place there is kind of crappy)

NigeC- 01-31-2006

ummm... not following you there, paranoia. I'm not sure what you are trying to do or what your Lassie-based solution you describe is. As for this shooter... I'll give you a hand, just tell me how exactly it should work (I didn't see any targets to hit, just the crosshair cursor) it should only take a couple minutes to script that (and the script in place there is kind of crappy) the "target" is a little grey square in one of the windows what i'm trying to do i have it so every time you miss a bullet gets removed (bottom corner will be 5 bullets i've got te image of a bullet) after the 5th bullet it goes to a cut scene to say you've been shot if you hit the target it loads a different cut scene i have a better shoot and reload sounds the plot you are trying to shoot a snipper in the opposite building, you onlfive bullets (when you get to this point of the game you should know which window to shoot at) the game is a remake of a single room AGS game called 6 day assassin in the original game it was a scrolling room (shooter bit), using the keyboard to aim i thought i'd do another small game to help understand how flash and LASSIE interacts, the game has took 5 days, that includes screen grabbing all the images from the old and fixing them (remove cursors, resize, inv items, redraw objects etc) as the source files are long gone! add some bits the original author didn't do (things opening and closing).. the original author is quite happy about the conversion and maay update the graphics and change the game play hopefully everything will be right to make the game with AS

bigmac- 01-31-2006

Here, This is about a five minute development job, but it should give you the functions you need to track/count shots, and there is a conditional in place for when the activity is completed (successfully or not). I stripped out all the old code, so you'll have to paste the few sound commands back in. hope that helps, let me know if you have any questions. http://www.gmacwill.com/lassie/flashgames/shoot.zip

NigeC- 01-31-2006

that is truely awesome greg thanks.. 5mins you said?!... its took me hours and ended up worse than it was before i started lol anything i can do 4U m8 just ask :D

bigmac- 01-31-2006

No prob! And, okay... it was actually closer to ten minutes =) But hey, I even got to do it on the clock! It was a great demonstration to show one of our new flash employees on simple object oriented programming, so thank you!

NigeC- 01-31-2006

a great demonstration to show one of our new flash employees on simple object oriented programming cool! i helped and didn't even know it!! :D i've never been any good with Flash.. i used to cheat and use Swish which i always found easier.. until now, swish is useless for game creating.. the only swf work i've done is simple stuff for websites (logos, small animations) after i've done this game i'll do a tutorial for a simple game, i've about sussed the basics, all in all i've only had two script arrors with this game, on the TGE it was every interaction almost! :oops:

PrestonD- 02-20-2007

Paranoia, let us know if you are still working on the game tutorial, that would be extremely helpful! thanks, PrestonD

NigeC- 02-21-2007

hi yes i'm still doing it, but i've max'ed out the bandwidth on my site so its going to be down until the 1st of march :( i'll work on it offline then upload it when the site is back :wink: the tutorial is in the form of a wiki, mainly so people can correct my mistakes or fill in the gaps theres a thread here about it forumer.com/viewtopic.php?t=278" target="_blank">http://lassie.10.forumer.com/viewtopic.php?t=278

bigmac- 02-28-2007

Hey, what version of PHP does the Wiki require? If it's 4.x, I could host it and save you some bandwidth. However, I know I'd tried installing one once and it didn't pan out... required PHP 5 which my host seems not to have adopted yet. Arg.

NigeC- 02-28-2007

i used an earlier version 1.9.2, i couldn't run the new one either.. if you want to host it you welcome to, my sites on shaky ground with my bandwidth problems it would be shame if the tutorial was down because of it

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.