PDA

View Full Version : [AS2] trying to create a Flash Game


Lorithon
04-17-2009, 06:32 PM
Do you like helping people over long periods of time? Do you consider yourself an expert on action script? Do you have the guts to make it simple for a newbie? :rolleyes:

Well have I got a challenge for you.
It seems that there are no tutorials for any horizontal shooters that I can find.
So if you could help me create a stick zombie game, that would be totally awesome


And here's how you can: every time i have a question or i need a formula for something i will add a comment to this thread and you (whoever you are) can answer them. Those who do help will have their displayed name added to the special help thanks under the credits. and you will have my extreme thanks:)

The basic statistics of the game is that it is level based, so after all the zombies are dead you shop and advance to the next level. As the levels progress the zombies are quicker and come in greater numbers

The shopping points (money) work on how many kills you get (headshots kills are worth 15)
Regular kills are worth 10 points


Damage-wise headshots do more damage than body shots

There are range and melee weapons, which you acquire with a certain amount of points!!! Also there are barricades you can buy and then upgrade (which costs two hundred points)

However I’m sure this is a lot to do, please leave a comment if you're interested in giving a devoted newbie some serious help.

Sincerely, Lorithon -- (game tag name)

If you have any questions about the game feel free to ask.

Lorithon
04-17-2009, 06:41 PM
Ok the first question is:
I have a Movie clip of a guy with a bat that walks forever because it loops
and i have a Movie clip of that same guy standing still.
how can i make it so that when no buttons are being pressed the standing still movie clip plays
and then when you prss the A key he moves Left And the D key makes him move Right?

P.S i thought it would be easier if i added pictures as an attachment but whever i close the upload
window my Internet Freezez, so i am afraid that a visual guide will not be possible on Action Script. Org

james00bond00
04-17-2009, 08:33 PM
You would basically say,
Walk_btn.onPress = function(){
walking_MC.gotoAndPlay("walking_frame")

then do the same, but have it on release for the movie clip to go back to the standing still frames.

To move the movie clip, adjust the _x or _y (vertical) position of it on the stage.

rrh
04-17-2009, 08:49 PM
Though onPress is for clicking on object with the mouse, isn't it? I presume he wants this to be controlled with key presses.

Here's an as2 tut on key presses:
http://flash-creations.com/notes/asclass_key.php

scarce
04-18-2009, 01:11 PM
unless you buy a book on it. The best way to find tutorials on things you need at that moment. For instance, making your guy move...go on google or yahoo and type in character movement in as2 or keypress in as2...same goes for spawning enemies, moving the screen, health, score. All these things are answered if you look. Plus not to mention theres 200 + people that have posted threads about the very same thing your talking about, at the top of this page, click search, then type in a couple keywords like key presses, or score. I promise you'll always find somethng you need, if not, then post and people will be more then happy to help. Good luck :)

kkbbcute
04-18-2009, 01:34 PM
unless you buy a book on it. The best way to find tutorials on things you need at that moment. For instance, making your guy move...go on google or yahoo and type in character movement in as2 or keypress in as2...same goes for spawning enemies, moving the screen, health, score. All these things are answered if you look. Plus not to mention theres 200 + people that have posted threads about the very same thing your talking about, at the top of this page, click search, then type in a couple keywords like key presses, or score. I promise you'll always find somethng you need, if not, then post and people will be more then happy to help. Good luck :)

Finally, someone who speaks my language, just search around and google yourself! Often, at least ten other people have asked the exact same questions over and over, either in this forum or somewhere online, so do just take 1 minute off to search. ;)

That said, if you really can't figure something out... Then you know what this forum is for :)

rrh
04-21-2009, 09:39 PM
Okay, after reading a couple of your other questions, I think this game is going to be slow going. You need to scale it back and make a much simpler game first. Space Invaders or Centipede or Asteroids or something.

added: I'm not trying to be mean or anything, it's just side-scrolling platformers aren't the easiest games to start with. That's probably why you couldn't find a tutorial.

Lorithon
04-21-2009, 09:58 PM
HHuhh..........i know what you mean

it's just that if i make a hole bunch of small games i feel like it won't prepare me for these bigger ones


for example where in small games am i goning to eventually learn how to create a slide that comes up before game play which allows which you to select a weapon you recieved based on how many points you got in previous levels?

i guess i'll take ur advice if you can help me later in the future when i understand better (sigh)

thx for your time just the same :)

rrh
04-21-2009, 10:05 PM
Programming is all about making complex things out of simple things.

How many points you got in previous levels? You store that in a variable. Can I afford to buy something that costs 2000 points if I have 3000? That's an if statement. If I have five different things to buy, that's arrays and for loops.

All the basics you can still use in a simple game.

kkbbcute
04-22-2009, 06:30 AM
Programming is all about making complex things out of simple things.

I really agree with this. Sometimes some of the hardest things in programming are the logic cycles, which tends to get confusing at times. Of course, there are those complicated bits of code that are good to know as well. (Matrices, etc.)

pixelwit
04-25-2009, 07:48 AM
Just for the fun of it, I'm going to disagree...

It can also be said that "Programming is all about making simple things out of complex things."

I suppose it's a matter of semantics and perspective. ;)

-PiXELWiT
http://www.pixelwit.com

kkbbcute
04-25-2009, 03:11 PM
What a minute, I just realized that I read the statement wroongly in my last post, what I really meant was, I feel that programming is more of making complex things out of simple things.