A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: yet another jumping problem

Threaded View

  1. #1
    Join Date
    Jun 2009

    yet another jumping problem

    hy, i have run into another problem, i have tried to create a code that make a ball jump, however when i press space it doesnt seem to be working, i have attached the file so you can have a look at it.

    PHP Code:
    y_start hero_y;
    jumping false;
    jumpspeed 0;

    if (
    jumping) {
    hero_y += jumpspeed;
    jumpspeed += 1;

    if (
    hero_y>=y_start) {
    hero_y y_start;
    jumping false;
    } else {
    if (
    Key.isDown(Key.SPACE)) {
    jumping true;
    jumpspeed = -14;

    thank you
    Attached Files Attached Files

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