A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: if you can help with a simple game...

Hybrid View

  1. #1
    Ryan Kallok: Kallok Studios kallok's Avatar
    Join Date
    Apr 2001
    Location
    Youngstown email: [email protected]
    Posts
    213

    Lightbulb

    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.

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Moved to Games

  3. #3
    Member
    Join Date
    Mar 2002
    Location
    Rye, UK.
    Posts
    47
    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

  4. #4
    Ryan Kallok: Kallok Studios kallok's Avatar
    Join Date
    Apr 2001
    Location
    Youngstown email: [email protected]
    Posts
    213
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center