|
-
Ryan Kallok: Kallok Studios
I need some help making this one kind of game.Well its located at http://entropicorder.com/games/cupcake.swf I am trying to make a simple game that you can move the character,have it jump,etc just like that.Only im having trouble and don't know where to start.If someone who knows how to make a game like this or anyone that knows where a tutorial or something like that would be,leave the url here or email me @ [email protected] .If someone could even make a basic sample and send me it I would appreicate it.
-
Moderator
-
You need to make your character into a separate movie clip, and name it - like 'cupcake' or whatever. Put it on its own layer in the main timeline.
Then make your controls into buttons, and put some script on them like:
To go left-
on(release){
cupcake._x-=20;
}
right-
on(release){
cupcake._x+=20;
}
Probably the best way to make the character jump is to edit its movie clip timeline. Put a stop(); on the first frame.
Open up the timeline (i.e. make it longer), and somewhere on it put in a key frame with the label 'jump'. Put a key frame on the character's layer (remember always to keep your frame code on a separate layer). Then you can do a bit of animation - motion tween or frame by frame. Make sure the character goes back to its original position at the end of the animation.
Then, on your jump button in the base movie, put in the code:
on(release){
cupcake.gotoAndPlay("jump");
}
The character clip will play the jump animation and then loop back to the first frame where the stop(); is.
There's obviously loads more you can do, but this should get you started. Check out the tutorials section for some more ideas.
Good luck
B
-
Ryan Kallok: Kallok Studios
thanks a ton,i got it nearly figured
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|