Shoot Zombies With Guns

Started by: AsSeenOnTV | Replies: 40 | Views: 2,093

Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Feb 14, 2010 4:35 AM #546621
Quote from AsSeenOnTV
SCORE
-If anyone knows how to get a number (score) to go up every time a certain movie clip is played, (when the zombie headshot clip is played, add 10. Chest, add 5. ext.) please tell. I think it could work.


on main movie first frame:
_root.score = 0;


whenever you want the score to go up by however much (eg on a frame in a movie clip)
_root.score += 10;


and then select your text box and make it "dynamic" and give it the "variable" of _root.score
AsSeenOnTV
2

Posts: 989
Joined: Dec 2008
Rep: 10

View Profile
Feb 14, 2010 8:36 PM #546897
Now THIS is addictive.
http://www.truploader.com/view/574504
Can't get the score to work. I can get it to work with buttons, but not movie clips. Can I add a code to a regular FRAME to add points?
Zed
2

Posts: 11,572
Joined: Feb 2009
Rep: 10

View Profile
Feb 14, 2010 9:10 PM #546904
Level two might be too easy. Level three took me about four gos. Great work. Can't help you with the scripting problems, unfortunately.
AsSeenOnTV
2

Posts: 989
Joined: Dec 2008
Rep: 10

View Profile
Feb 15, 2010 8:17 AM #547165
A rather large update
http://www.truploader.com/view/586391
I made the music :3
As soon as I get the scoring going, the game's done!
zer0gravity
2

Posts: 490
Joined: Oct 2009
Rep: 10

View Profile
Feb 15, 2010 8:49 AM #547170
holy shit!!! thats so awesome!!!!!!!

hope crazy jay will put it on stick page portal.
AsSeenOnTV
2

Posts: 989
Joined: Dec 2008
Rep: 10

View Profile
Feb 15, 2010 8:11 PM #547334
http://www.truploader.com/view/471736
I NEED TO FIGURE OUT THIS SCORING
I added scoring thingys.
There's an intro-type screen.
I also made Zombie1's jacket the right color during the chestshot.
Wsheerio

Posts: 284
Joined: Nov 2009
Rep: 10

View Profile
Feb 15, 2010 8:25 PM #547337
The title makes me think that you will be adding more guns, is this correct?
AsSeenOnTV
2

Posts: 989
Joined: Dec 2008
Rep: 10

View Profile
Feb 15, 2010 8:28 PM #547339
Quote from Wsheerio
The title makes me think that you will be adding more guns, is this correct?

Unless someone wants to script some automatics, no.
doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Feb 15, 2010 9:42 PM #547358
Hey, i can help you out with the score and the automatic guns if you want. I mean, i won't code it, but i can help you with the how to's.
Just pm me if you want help
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Feb 15, 2010 10:15 PM #547379
Quote from AsSeenOnTV
Unless someone wants to script some automatics, no.


hi,,,,,,,,,,,,,,,,,,,,,,,,,,,,
AsSeenOnTV
2

Posts: 989
Joined: Dec 2008
Rep: 10

View Profile
Feb 16, 2010 1:13 AM #547436
Scarecrow, you've helped me out before. PM'd.

If anyone's interested:
http://www.truploader.com/view/118130

First aimer, same.
Second aimer, shotgun.
Third aimer, automatic.

Knock yourself out.

ABOUT THE SCORE
I want to be able to put a code in a frame that changes the score whenever the frame is played, in a movie clip or somewhere else. That's all I need.
zer0gravity
2

Posts: 490
Joined: Oct 2009
Rep: 10

View Profile
Feb 16, 2010 4:33 AM #547503
what he needs is like...

_root.onRelease(button instance){
_root.score.text += 5;
}

so that he can make the button release code for a button on a differant frame.
Vendetta

Posts: 1,238
Joined: Oct 2009
Rep: 10

View Profile
Feb 16, 2010 6:24 AM #547529
why the **** would the feet score the lowest if they're the hardest to shoot?

I can't help you with the score situation, probably what zero said, it makes sense.
zer0gravity
2

Posts: 490
Joined: Oct 2009
Rep: 10

View Profile
Feb 16, 2010 6:39 AM #547536
Quote from Vendetta
why the **** would the feet score the lowest if they're the hardest to shoot?

I can't help you with the score situation, probably what zero said, it makes sense.

that is a good point, but in shooting games, its quite often that the head scores the most.

if by "zero" you mean me, Thanks ^_^. That code wasn't correct... I was making an example to help a better coder(doc or scarecrow) understand what I meant.
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Feb 16, 2010 8:57 AM #547591
Quote from Vendetta
why the **** would the feet score the lowest if they're the hardest to shoot?


because why the **** would you want to shoot a zombie in the foot