PDA

View Full Version : Making Another Sniper Game



AsSeenOnTV
01-15-2010, 12:44 PM
MAKING GAMES
Zombies!
http://www.truploader.com/view/711129

Targets (old version)
http://www.truploader.com/view/342829&lb=y


HotD GAME
Making a first-person shooter like House of the Dead
http://www.truploader.com/view/072994
Can't kill that guy, never will.

If you want to help, download to see how I'm doing it.
http://www.truploader.com/view/008049



Sniper games!
http://www.truploader.com/view/422236 First
http://www.truploader.com/view/783220 Second
http://www.truploader.com/view/921495 Third
http://www.truploader.com/view/210872 Third.2
These are getting cool

If you want to download the file and see how I'm doing it, go ahead. Give me some advice.
http://www.truploader.com/view/790162

Arch-Angel
01-15-2010, 01:08 PM
Try working on your artwork more.

AsSeenOnTV
01-15-2010, 01:31 PM
It will be a good looking game when it's completed. Tricky levels and nice backgrounds. I'll work on it some more on Sunday.

Arch-Angel
01-15-2010, 03:07 PM
It looks like all you did was change the cursor, and make the stick figures into buttons that go to the next frame when clicked.

If so, try to change that.

kf22
01-15-2010, 04:00 PM
After you kill each one you can see a small dot appear, I'm guessing you forgot to make the last frame of your movieClip blank

lol this is my 69th post XD

AsSeenOnTV
01-15-2010, 06:12 PM
It isn't too impressive, but I made this.
http://www.truploader.com/view/783220
Since this isn't important, I only made one animation for every stick. If I make a decent game, it will three or four.

zer0gravity
01-15-2010, 08:00 PM
Holy shit man!! thank you so much for putting a download link on. I made one from basic sorta knowledge you gave me =)

Here it is http://www.*************/open/1263604528

AsSeenOnTV
01-15-2010, 08:46 PM
Added blood, movement, and amusement. Don't stare at the buttons too long.
http://www.truploader.com/view/921495
I could go far with this..

I'm glad I inspired you, zer0gravity.

Scarecrow
01-15-2010, 09:42 PM
hmm, the movement does make it more challenging

but you should consider details like the fire rate, kickback, and accuracy of the gun you're using

zer0gravity
01-16-2010, 12:47 AM
Added blood, movement, and amusement. Don't stare at the buttons too long.
http://www.truploader.com/view/921495
I could go far with this..

I'm glad I inspired you, zer0gravity.

Im begging you!!! please add the download link!!!

AsSeenOnTV
01-16-2010, 06:22 PM
hmm, the movement does make it more challenging

but you should consider details like the fire rate, kickback, and accuracy of the gun you're using
I can't figure out how to do ANYTHING with the scope.
I try to make it react to clicking, just like the sticks, but it doesn't work. Even if it did, you would end up clicking the scope instead of the sticks.
Help ploise?

Edit: Adding V-cam to the scope is a mess.

zer0gravity
01-16-2010, 07:11 PM
Ill give you a file for it =)

Scarecrow
01-16-2010, 08:24 PM
I can't figure out how to do ANYTHING with the scope.
I try to make it react to clicking, just like the sticks, but it doesn't work. Even if it did, you would end up clicking the scope instead of the sticks.
Help ploise?

well as soon as you start using buttons as targets you lose a lot of control

if you were to use movie clips as targets, you would be able to have a cooldown time between shots, for example


like... let's see


cooldown=0;
//set the variable for the cooldown period to zero
cooldowntime=100;
//set the variable for how long cooldown will take to 100/[framerate] seconds

this.onEnterFrame = function() {
//as long as the playhead is on this frame, repeat the following:
if (_root.cooldown > 0) {
//if the cooldown period is greater than zero,
_root.cooldown--;
//reduce the remaining cooldown by one
}
}

_root.target.onRelease = function() {
//when the movie clip with the variable name "target" is clicked on,
if (_root.cooldown == 0){
//and if the cooldown counter is currently at zero,
//INSERT YOUR SCRIPT FOR MAKING YOUR TARGETS DIE HERE
_root.cooldown = _root.cooldowntime;
//set the remaining cooldown to be currently equal to the total cooldown time
}
}



DISCLAIMER:
this might not work, i haven't tested it. hell, i invented it while i was typing. but even if it doesn't, hopefully it will give you an idea of what you need to do

AsSeenOnTV
01-16-2010, 08:56 PM
well as soon as you start using buttons as targets you lose a lot of control

if you were to use movie clips as targets, you would be able to have a cooldown time between shots, for example


like... let's see


cooldown=0;
//set the variable for the cooldown period to zero
cooldowntime=100;
//set the variable for how long cooldown will take to 100/[framerate] seconds

this.onEnterFrame = function() {
//as long as the playhead is on this frame, repeat the following:
if (_root.cooldown > 0) {
//if the cooldown period is greater than zero,
_root.cooldown--;
//reduce the remaining cooldown by one
}
}

_root.target.onRelease = function() {
//when the movie clip with the variable name "target" is clicked on,
if (_root.cooldown == 0){
//and if the cooldown counter is currently at zero,
//INSERT YOUR SCRIPT FOR MAKING YOUR TARGETS DIE HERE
_root.cooldown = _root.cooldowntime;
//set the remaining cooldown to be currently equal to the total cooldown time
}
}

DISCLAIMER:
this might not work, i haven't tested it. hell, i invented it while i was typing. but even if it doesn't, hopefully it will give you an idea of what you need to do

My brain just melted and drained out of my ears.

This is what I've been trying before, why doesn't it work?
http://www.truploader.com/uploads/634363flashelp.png

zer0gravity
01-16-2010, 09:10 PM
that looks like it should work =S

Scarecrow
01-16-2010, 09:53 PM
My brain just melted and drained out of my ears.

This is what I've been trying before, why doesn't it work?
http://www.truploader.com/uploads/634363flashelp.png

what do you want it to do?

my code doesn't have anything to do with the aiming or anything, it just makes it so that you can't shoot a target for 100/[game framerate] seconds after firing


also, it looks like you're trying to apply button script to a movieclip, which won't work. also, if you're trying to make your cursor in to a button, you won't be able to shoot anything that's covered by the cursor. you can only click one button at a time and you'll be making sure that that button is your cursor every time.

what's the instance name of that there "symbol 8"?

AsSeenOnTV
01-16-2010, 09:57 PM
I'm just trying to make the aimer jump when you shoot. It's such a simple idea, but so challenging.

Scarecrow
01-16-2010, 10:00 PM
have you got msn?

i'll have a look at your whole flash file if you like

Arch-Angel
01-16-2010, 10:22 PM
I would say come up with a way where when you click, the cursor goes into an animation where it does the kickback as well, but while it's doind the kickback, it doesn't have the clickable feature to it.

Also work on your hit test, I could barely click on the stick figures :/ I would get about one or two in an entire run.

Scarecrow
01-16-2010, 10:38 PM
var clickListener:Object = new Object();
clickListener.onMouseDown = function () {
_root.symbol8.play();
};
Mouse.addListener(clickListener);


man

AsSeenOnTV
01-16-2010, 10:41 PM
have you got msn?

i'll have a look at your whole flash file if you like
I have AIM. AsSeenOnTV9.
I'm on quite a bit and I'll be home all day tomorrow.
Here's the latest http://www.truploader.com/view/248769
Criticize on what you wish and thanks for the help.

zer0gravity
01-17-2010, 03:50 AM
I was thinking... how could you fix this... it came to me.

give the aim/scope thing an instance name and then on the frame make a link to it. like this


onMouseDown = function () {
_root.aim.play();
};



onMouseDown = function () {

making it recognise that a click is a function

_root.aim.play();

making a link to your modified cursor, and putting play after it will make it play (the modified corsor has an instance name of aim)

};

closing the action




anyways... AsSeenOnTv, I gave you a download link to make it more clear

EDIT: just looked at scarecrows last code and its pretty much the same, just mines simplified and explained =)

zer0gravity
01-17-2010, 04:41 PM
New post cos I need help... when my question is answered ill take it away.

arch-angle or scarecrow, PLEASE HELP

I made an enemy and he walks across the screen because I put in a tween and made him into a movie clip that has him walking inside of it... when you click him he falls over but he keeps moving because of the tween... how can I stop the tween when he is clicked?

AsSeenOnTV
01-17-2010, 04:50 PM
I have the same question. It would be better for me to figure this out for myself, but I need to know too.

Update!
Making a nice game, can't get the buttons to even function, you can pick up the knife, the end.
http://www.truploader.com/view/604413

Tortuga
01-17-2010, 05:04 PM
Wow, when he picks up the knife that looks really good but is there a reason you make your games wobbly?

Vendetta
01-17-2010, 05:09 PM
Pazzaz .

zer0gravity
01-17-2010, 05:10 PM
its his style ^_^

RUiN
01-17-2010, 05:58 PM
Everyone know's wobbly's the new sexy.

Scarecrow
01-17-2010, 06:18 PM
I have AIM. AsSeenOnTV9.
I'm on quite a bit and I'll be home all day tomorrow.
Here's the latest http://www.truploader.com/view/248769
Criticize on what you wish and thanks for the help.

i made some changes, and i commented everything i made adjustments to

works the way you wanted it to now, plus the added functionality of a cooldown time between shots is available

still somewhat inefficient because you used buttons, but it works.

swf:
http://www.truploader.com/view/383855

fla:
http://www.truploader.com/view/227799


[EDIT]

made code much more efficient. you can also adjust the number of buttons in the code without having to go through changing numbers for lines and lines of it - all you have to do is change "numberofbuttons"

NEW fla:

http://www.truploader.com/view/463771

AsSeenOnTV
01-17-2010, 07:24 PM
Sorry, Scarecrow. I found a better way to do it before you posted
Swf: http://www.truploader.com/view/210872
Fla: http://www.truploader.com/view/790162

zer0gravity
01-17-2010, 07:43 PM
Well since everyones doing it...

I made a change to it =)

SWF:

http://www.truploader.com/view/881268

AsSeenOnTV
01-17-2010, 08:01 PM
Somebody PLEASE explain to me why the elevator buttons don't work. (View - buttons)
http://www.truploader.com/view/920812

I would also like to get SPACE to work as the attack button instead of click. I have problems with that too.

zer0gravity
01-17-2010, 08:13 PM
I figured out your problem.

you had this code on a movie clip.


on (release) {
gotoAndPlay(3);
}

when Its only permited for a button.

If you select the moviecliped elevator buttons then make them into buttons this code can be applied

Heres the download link to it:

click here (http://www.truploader.com/view/442045)

Fries
01-17-2010, 08:37 PM
pretty fun it looks 50-50 so far

Scarecrow
01-17-2010, 08:43 PM
I figured out your problem.

you had this code on a movie clip.


on (release) {
gotoAndPlay(3);
}

when Its only permited for a button.

If you select the moviecliped elevator buttons then make them into buttons this code can be applied

Heres the download link to it:

click here (http://www.truploader.com/view/442045)


nonononono

don't use buttons, just use the movieclip button script




this.onRelease=function(){
gotoAndPlay(3);
}

zer0gravity
01-17-2010, 08:51 PM
ooooo....


I didn't know that =)

Arch-Angel
01-17-2010, 09:08 PM
I tried to tell you D=

zer0gravity
01-17-2010, 09:17 PM
here is your file sir:

swf:Click Here (http://www.truploader.com/view/092018)

fla:Click Here (http://www.truploader.com/view/781383)

fixed it completely by:

Turning the elevator buttons into flash buttons

and

replacing the attack movieclip script with this one:


stop();
someListener = new Object();
someListener.onKeyDown = function (){
if (Key.isDown(Key.SPACE)){
play();
Key.removeListener(someListener);
}
}
Key.addListener(someListener);

AsSeenOnTV
01-18-2010, 12:19 AM
This is what I have so far.
http://www.truploader.com/view/788232
-Didn't make outside scenes yet
-Floor 1 says 3, I'm retarded
-NO PROBLEMS

I appreciate the attention. This game would be nothing without you guys.

FoShizzle
01-18-2010, 12:39 AM
That's pretty cool so far.

zer0gravity
01-18-2010, 01:46 AM
sick ^_^ .

Scarecrow
01-18-2010, 02:46 AM
This is what I have so far.
http://www.truploader.com/view/788232
-Didn't make outside scenes yet
-Floor 1 says 3, I'm retarded
-NO PROBLEMS

I appreciate the attention. This game would be nothing without you guys.

problem: when picking up the knife, i have two left arms if i stab

AsSeenOnTV
01-18-2010, 02:52 AM
problem: when picking up the knife, i have two left arms if i stab
I'm really not sure if it's worth fixing. This game's gunna be short anyway.

Scarecrow
01-18-2010, 03:13 AM
sure it is

everything is worth fixing

all you need to do is make a variable disable the stabbing until the pick-up animation is finished

AsSeenOnTV
01-19-2010, 09:25 PM
Update!
http://www.truploader.com/view/072994
-Things outside of elevator
-Death
-Sounds, music
-I'd like to find out how to get the HUB to go away when you're dead
-Option of stabbing the zombie on the first floor has not been made yet

zer0gravity
01-19-2010, 09:34 PM
lol... you can slash the you are dead screen....

could you add the fla file? I wanna see how u made it ^_^

Fries
01-19-2010, 09:36 PM
well, its improved...i like it so far, its also bit wobbly

AsSeenOnTV
01-25-2010, 09:03 PM
http://www.truploader.com/view/239938
Space to punch. You can't win and he keeps going forward when he dies.

Also the revolutionary idea of stacked stairs
http://www.truploader.com/view/170268

Vendetta
01-25-2010, 09:38 PM
that's genius

Scarecrow
01-26-2010, 12:22 AM
Also the revolutionary idea of stacked stairs
http://www.truploader.com/view/170268

http://superfunadventuretime.com/wp-content/uploads/2009/12/ScannersExplodingHead.gif

Vendetta
01-26-2010, 01:55 AM
wtf ?

AsSeenOnTV
02-04-2010, 08:33 PM
And I AM still alive.
http://www.truploader.com/view/011708

Any Ideas for a Valentine's Day animation? It's comin' up fast.

b0mb
02-04-2010, 09:29 PM
Crap. so it is. How about a stickfight massacre? to commemorate the massacre.

sunnygo
02-07-2010, 11:11 AM
Haha cool, the sound does frighten me :p

AsSeenOnTV
02-08-2010, 01:49 PM
This is fun
http://www.truploader.com/view/342829&lb=y
I'll make those targets enemies if I feel like it.

AsSeenOnTV
02-08-2010, 03:31 PM
UPDATE! We got zombies!
http://www.truploader.com/view/711129