0 Replies - 5067 Views - Last Post: 30 April 2012 - 02:08 AM

#1 blueboyz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 26
  • Joined: 24-April 12

Making my sprite jump in J2ME

Posted 30 April 2012 - 02:08 AM

I am very new to this language. I am trying to make my character jump. How to do it? I am trying to do it like this.
int lompat=sPlayer.getY();
                while(lompat<=170)
                {
                  for(;lompat>=150;lompat-=2){
                      sPlayer.move(2, -2);
                      sPlayer.nextFrame();
                  }
                  sPlayer.move(2, 2);
                  sPlayer.nextFrame();
                  lompat+=2;
                }

But it can't jump pixel by pixel? Sorry for my noobish question

Is This A Good Question/Topic? 0
  • +

Page 1 of 1