Search:

Type: Posts; User: hwoarang69

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,765

    [SOLVED] Re: need help with basic jump command

    :) yaa. I almost got it to working.

    private int dx = 1; //player speed
    private int dy = 30; //height of jump
    private int gravity = 2;
    private int velocity_Y = 10; ...
  2. Replies
    8
    Views
    1,765

    [SOLVED] Re: need help with basic jump command

    let me first say, thanks alot for helping me out, jps. I am starting to see how gravity works in 2d game, still have just a difficult.


    i am trying to give a effect if jump up fast. slow down at...
  3. Replies
    8
    Views
    1,765

    [SOLVED] Re: need help with basic jump command

    ah i see. so i just want to make sure i understand this right.
    vertical will be how height the player can jump. in this ex it's 10 pixs.
    gravity will be the force pulling down.


    [code]private...
  4. Replies
    8
    Views
    1,765

    [SOLVED] Re: need help with basic jump command

    yes, jump get to set to false when user let go of space bar. the code for that is in different file. so here is what i thinking:

    if(jump == true){
    if(jump_counter < jump_height){ //move up...
  5. Replies
    8
    Views
    1,765

    [SOLVED] need help with basic jump command

    here is what i am trying to do:
    I am trying to make my player jump if user hit the space bar. i am just trying to set up basic jummping nothing too hard.


    the problem:
    when user hold space bar,...
Results 1 to 5 of 5