Ok, first, make your MC that will be your character, make 2 MC’s, one inside the first frame of your character MC, and make him just sitting there. Now put on that frame:
stop();
That makes him just sit there, or ‘idle’. Now make a second MC in the second frame of you character that shows your character running. On that frame put this:
stop();
This will stop it from automatically changing frames. Now, on your character MC put this code:
This looks complicated, but it’s not.
It means ‘if the right key is down, move to the right, and then if it was left a second ago, lets turn it turn it to the right… but if the left key is down, lets go left and if it was right a second ago, lets make it left… but maybe theyre not pressing anything? lets just stop altogether!’
That’s it, the end. Comments accepted, but don’t be to harsh, this was my first tutorial. :lol:
FFS Bomb. Dont be so rude. I hate that. People start somewhere. This may help someone who is new to flash… helpibng them to learn to walk before they try to run. Forgive me if Im wrong… but I havent seen you bring out a tutorial. The title clearly states its **basic **movement. But I guess you didnt see that:look:
I say, Good work Knux, keep at it, you’ll get there.
ok so im a noob and i just got done installing flash and i look at my first tutorial this one >.< i would probably have quit flash no offense but like i said its a noob code on an intermediate level of knowing flashes interface
I dont know … It doesnt matter if its your first or twohundredfiftysecond tutorial… I mean sure it matter in the style of writing, you’ll get better as you write more. But you should give more indepth explaniations. As Bomb^ stated above, you should have a bit higher AS knowledge before start writing tutorial. Maybe you are an AS guru but likes writing this way, so no offence.
My first movement codes where similar to this so I’ll approve. But there are better out there. Keep it up though, tutorials are hard to write so I’ll give you a thumbs up :thumb:. I’d suggest looking at the tutorials on this site and look how they are presented. Then maybe you have a tutorial in mind that’s not currently here (i know theres alot). So keep up the good work!