Be a Supporter!
Response to: Flathead collab [free parts] Posted June 9th, 2007 in Game Development

Lol wow...I'm a moron.
Sorry, I didn't completely read the post.
Nevermind me.

Good song by the way :D

Response to: Flathead collab [free parts] Posted June 9th, 2007 in Game Development

Wasn't there already a Flathead collab not too long ago?

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

At 6/9/07 07:14 PM, LCurtis wrote: Not to mention that its very basic code to get what you want. Its like you don't want to actual learn (by reading tutorials or searching the net for solutions)

If it's so basic than let's see it.
And read the FIRST SENTENCE of my original post dumbass, I ALWAYS search before I post. There wasn't anything to learn from. Maybe you should learn to READ before you post...

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

LOL!
Right, because I honestly don't want to learn anything. I'd much rather come here for all coding help and deal with ignorant assholes such as yourself.

Anyway, for those actually offering help, I tried again to get the left right thing to work but am not sure how to do it. This is what I currently have for the mouse click

char_mc.onMouseDown = function() {
the_x = _xmouse;
the_y = _ymouse;
if (_xmouse > _root.char_mc._x) {
_root.char_mc._xscale = scale;
}
if (_xmouse < _root.char_mc._x) {
_root.char_mc._xscale = -scale;
}
_root.char_mc.gotoAndStop(2);
};

Like I said, I'm still pretty new to AS so I tried the best that I could. I did manage to get the character to not move right when the game starts but haven't accomplished the stopping of the running animation.

Response to: Need a few shorts scripts please Posted June 9th, 2007 in Game Development

on(press) {
gotoAndPlay("Don't be dick")
}

Seriously dude...stop posting just to tell people to do everything themselves. They obviously came here for help, so help them, or don't post.

Now, for the OP, before I ask anything I always check AS: Main
There are a lot of helpful AS tutorials there.

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

At 6/9/07 06:58 PM, LCurtis wrote: Can you do any AS on you're own. He just gave you how to move, now you want him to animate it with AS too. What next make him attack, then die, .... Try and do it yourself first then post the code that you tried and we will see where you went wrong.

...can you do any reading on your own?
Yes, I can do some AS, and I've tried all I can.
And no, I already animated it myself, I'm asking if there's a way to change the direction and stop the animation when the movement stops.

So like...what was the point of you posting? Not to mention posting with such bad grammar and use of punctuation. Sorry, that bothers me.
If you're not going to help then just leave, no need to be a dick just to raise your post count.
I guess I missed the memo that it's now wrong to ask for help. I've done all that I can do and I know that NG has many many skilled scripters when it comes to Flash, I'm just being resourceful. Sorry that I don't know everything there is to know about AS.

Now, if anyone CAN offer any help as to my last two questions I would greatly appreciate it.

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

Sorry, I'm tired and just realized that I left something out of that last post.

I want the running animation to STOP when the character gets to his spot.

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

Shirk, your code is working beautifully, thanks!
A couple questions though.

I have a running animation that plays and I set it so that when you click it plays the animation and I tried to set it so that when he reaches the spot (this._x = the_x, this._y = the_y) hoping that it would work but it doesn't.

So my first ? is:

How can I make it so that when my character reaches where the mouse clicked, it will go back to the standing animation?

Second ?:
Is there a way I can use _xscale = -scale and whatnot (or something else) to make it so that when the mouse clicks, depending on where the click was (left or right of the character) the character will face that way?

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

I'm pretty much a noob at AS, I really started working with it like a month ago, before that pretty much only knew buttons. I've been learning a lot though and before I came here I was going to try a code that made the char move to the mouse position but I figured it they moved the mouse it would mess that up. I'm going to try shirk's method, I'll post with how that goes. Thanks!

Response to: Click, move to mouse Posted June 9th, 2007 in Game Development

Right so uh...thanks for your help??
I said it was a simple IDEA. I obviously have no idea how to do it so why would I make judgments about it's difficulty?

Click, move to mouse Posted June 9th, 2007 in Game Development

Ok, I've searched the forums and AS Main but I can't seem to find how to do this. It's a simple idea, I want my character to move to where the mouse clicks. I found a game with this kind of movement online, DragonFable. That's the kind of movement I want, the player clicks a spot on the screen and the character runs to that spot and stops. Any help would be greatly appreciated.

Thanks!

Response to: Searching 4 multiplayer games Posted June 8th, 2007 in General

At 6/3/07 01:31 PM, AnalogStick wrote: www.runescape.com
It's perfect for you!

Um...read much? He wants mulitplayer games on NG.
And seriously dude, did you even look?

Response to: my preloader Posted June 6th, 2007 in Game Development

So I have NO idea what that guy's talking about, your preloader looks fine (did he even view it?)
The big gray button kind of bothers me, looks a little dull and plain compared to the rest of the stuff in there, maybe change the color of it or add a slight gradient. Not bad though.

Response to: Best time to submit a movie? Posted June 5th, 2007 in Game Development

At 6/5/07 05:14 PM, TomsPulp wrote: i do it at like midnight, late at night when not alot of stuff is going on and cuz during the day alot of people just hurry and vote 0 and click "goto random submsiion" just to get xp. cuz at night those people arent on

Right. Those people are on at all times of the day, and voting 0 doesn't do much for xp because there are a lot of flashes that are decent and make it to the portal.

Anyway, as said before there's not really a certain time to submit. Just submit it and people will view it and vote on it, it'll get what it deserves. Good luck!

Response to: right_clicking... Posted June 4th, 2007 in Game Development

AS: SWF Right Click Menu

You could always customize it, but yea as said before, you can't completely get rid of it but that code will hide most of the items. Or you could follow that tut ^ and make your own items.

Response to: Is This Wacom Good? Posted June 3rd, 2007 in Game Development

I believe it said it's only 4x5 inches. That's pretty small compared to what I've seen people normally use but it is a lot cheaper than those other ones as well.

Response to: Actions for Duplicated MCs Posted June 3rd, 2007 in Game Development

Ok, I think I get what you're saying. Let me try this out.

Thanks!

Actions for Duplicated MCs Posted June 3rd, 2007 in Game Development

Ok so, I have a button that when clicked opens up the floor and the object that was on the floor falls. It works right now because I only have on object on the floor but I want to add more. Eventually I want the player to be able to add more objects just by clicking a button and then when the floor is opened, all objects there will fall through.

So I took that one instance of the object that was on the stage and copy pasted it a couple of times. Now when i click the fall button all of the objects fall but only one of them plays the falling animation I added. Is there a way I can make it so no matter how many instances of the object there are on the stage, they will all fall and play the falling animation when the button is clicked?

Here is the code that is on the floorMC which contains the button:
on(release) {
this.gotoAndPlay(3);
_root.teddy.gotoAndPlay("fall");
}

Any help is greatly appreciated, thank you!

Response to: Play my Game Posted May 26th, 2007 in Game Development

Not bad, I remember playing this when you were first starting out. I like it.

Response to: I want to learn Action script. Posted May 25th, 2007 in Game Development

AS: Main

Right here on the forums. It contains a lot of good tutorials. I'd also try google for some more complete lessons. I think Flashkit may have some as well as actionscript.org

Good luck, it can be overwhelming but it's fun. I've been learning for the past couple months myself.

Response to: AS: Hierarchy. Posted May 25th, 2007 in Game Development

At 11/23/05 07:08 PM, Drake-SI wrote: Lol, I laughed, I cried, I learned =-P

That pretty much says it all. Thank you so much, this is helping me out a lot!

Response to: Replacing Movie Clips on the Stage Posted May 25th, 2007 in Game Development

At 5/25/07 02:04 AM, 3dwarrior wrote:
At 5/25/07 01:59 AM, ChilliDog wrote: I'm still learning AS so I had never heard about tellTarget until now, it really came in handy :D.
I'm pretty sure tellTarget is an old function that isn't used anymore (depreciated, unless your in Flash 5 or whatever), so you should probably learn about Hierarchy.

I'm actually using Flash 8 haha.
I've dealt with hierarchy before in 3d and animation and game creation n such, I didn't even think about how I could use it here. Dealing with parent and child and whatnot, right? I'll go read that. I saw it there earlier but didn't even consider it, duh. I should stop staying up so late, it's hard to think at 2am. Thanks for your help!

Response to: Replacing Movie Clips on the Stage Posted May 25th, 2007 in Game Development

At 5/25/07 01:53 AM, 3dwarrior wrote: Your thinking in the wrong direction... what you would do for a game like that is just have one movie clip for example for the legs, and on different frames have different movie clips which would contain the animation.
ex. main legs mc -> standing, or walking, or whatever...

All you would have to do is go to the right frame... (make sure to have a stop(); code in each frame). I think you can get the rest...

Yea, I think this is what I just realized lol. I didn't see your reply until after I just posted all that ^
Making all those MC's made it alot harder on myself. Now I just have one for each part that contains the different movements and I use tellTarget to gotoAndPlay those different movements. I'm still learning AS so I had never heard about tellTarget until now, it really came in handy :D.

Thanks for your reply

Response to: Replacing Movie Clips on the Stage Posted May 25th, 2007 in Game Development

OK, I actually think I figured this out after I learned about the tellTarget function.

So rather than make an MC for each dance I make one MC for each body part.
My leg MC contains all the different dances that the legs do as well as the normal legs.
In my leg MC (and all other parts) I have it set so that say, frame 1 is labeled one, and I have my normal legs. In frame two I label it two and have a short 10 frame animation loop. Frame 12 is labeled three and contains my next looped dance animation, etc. When I put the MC on the stage I label the instance "legs."

Now, in the code for the second leg button (to make him dance) I have the following:

on (release)
{
tellTarget("/legs")
{
gotoAndPlay("two");
} // End TellTarget
}

So now, when that button is clicked it goes to my dance animation inside that MC and will loop until another button is pressed. The other buttons are similar except that the "two" will change to the different numbers.

I will use basically the same code for the other body parts as well. So far it's working but if anyone has anything to say or ask, PLEASE do. I could use all the help I can get and I'll probably have more questions.

Response to: Replacing Movie Clips on the Stage Posted May 25th, 2007 in Game Development

I just read something in AS: Main about duplicating movie clips. Would attachMovie be an option here?

Another thing I was thinking about, would I have to write code for each possible situation? Like, if I want to replace leg1 MC with leg2 MC it would be one line of code. Replacing leg1 with leg3 is another, leg2 with leg1 another, etc. Or is it possible to say "When this button is clicked place the MC leg2 at the position 'legs'?" So rather than replacing what is already on the stage, you're getting rid of what was there and placing something else in the same spot.


I'm making this game for a final project in school. The game is a lot like this one. That's actually where I got the idea from. My problem is, I don't know how to change the MC's on the stage from the normal stance to the dancing. For example:

I have 3 buttons for the legs. When you click the first one I want the normal legs to start dancing. When you press the second button they start a different dance and the third button puts them back to normal. I've only been using Flash for like a year and AS for a few months. Here's the way I planned to do it.

When you start, and when all dances are stopped, the stage contains all the Normal, still Graphics, where nothing is moving. When you click the first leg button the legs graphic(or whatever is on the stage at the time) is replaced with the first legs MC. The second button will replace whatever is on the stage with the second movie clip and the third button will change it back to the normal, still graphic.

This same process will be used for the head, arms, face and music. I figured that would be the easiest way but I'm not sure exactly what kind of AS I'd use for it. I've been searching through AS: Main for a while and I can't seem to find what I'm looking for. If anyone has any idea how to do this, or if there's a better way, please let me know. Any help would be greatly appreciated.

Thanks

Response to: AS: Preloaders Posted May 24th, 2007 in Game Development

This is great, it really helped me out. Thanks Snubby!

Response to: V-Tech Rampage Posted May 18th, 2007 in NG News

At 5/18/07 07:22 PM, Blommestein wrote: Notice how all the kids that defended this game, along with the creator, seem to be a bunch of either total dumbasses or kids that are made fun of or bullied? Makes me cheerful that God was way ahead of the game by making them like that. :)

Right.
Everyone against the game is right and wonderful and everyone for it is a dumbass or bully victim? And you're calling people ignorant? Do you know what that word means? No, because you're ignorant. Grow up, it's time to learn that there's more than one side to an argument, and you're not always right. Keep in mind, I'm not saying any one is "right" here, I'm just saying, next time have a valid argument for your side that doesn't involve calling everyone who doesn't agree with you a moron. Pull your head out of your ass, you "ignorant douche."

Response to: V-Tech Rampage Posted May 18th, 2007 in NG News

We all knew it would cause controversy.
The only thing I find wrong with this is that he tried to take advantage of the people who were bad talking him. Up until I heard about that I was on his side.

Response to: Geez Wade... Posted May 14th, 2007 in General

At 5/14/07 04:17 PM, HypnotizedCampPosse wrote:
I'd hit it.

I second that.
I'd also hit it.

twice.