HELP!

GMatisoffGMatisoff Member Posts: 3
edited November -1 in Working with GS (Mac)
I have a few problems I've been trying to figure out for some time one. The main one is sometimes when I preview my game, the character only moves to the left after spawning. This happens every once in awhile, and I can't figure it out for the life of me.

The other one is I can't get my character to jump, right now he kind of floats around.

Any advice would be greatly appreciated!

Comments

  • design219design219 Member Posts: 2,273
    More info needed. How does your character move? button? tilt? Are you talking about preview in GS or the iPhone viewer? How does it jump?

    Also, did you follow/read the tutorials on jumping?
  • design219design219 Member Posts: 2,273
    As for the jump, do you have gravity in your scene?
  • GMatisoffGMatisoff Member Posts: 3
    I'm using the keyboard setup (so spacebar would be the jump button). I've looked at different tutorials and I'm all sorts of lost.

    Gravity is set to 1 in the scene attributes

    I guess what I would like to know is what's the best way to get a character to jump?
  • design219design219 Member Posts: 2,273
    You need a platform, or ground actor with collision behavior and use a timer with an accelerate behavior. Like: when spacebar is down, accelerate for .2 seconds. You just have to play with the amount of acceleration, the time the acceleration continues for and gravity.
  • GMatisoffGMatisoff Member Posts: 3
    I forgot to mention I have a ground in there already so my actor doesnt fall into oblivion lol. So I should create a rule with the rule of when spacebar is pressed down.

    and in the behavior section should I put a timer (set to .2) with an acceleration going up?

    so what I have looks something like this (sorry I'm not sure how to post pics on the board)

    Jump
    When ALL conditions are validL

    Actor receives event key SPACE keyboard is down

    TIMER
    for 5 seconds

    Direction 90 Relative to Actor
    Acceleration 100
Sign In or Register to comment.