A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Jumping on a spring

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    5

    Jumping on a spring

    I'm going to ask my question again in a simpler way...

    *ahem* ...Imagine you're making an engine for a 2-D Platformer. The exit of the level is on a high ledge and you want your main character to be able to jump on a spring or something to propel himself/herself up and land on the high ledge... How do you get that to happen?

  2. #2
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,928
    It's not so much the question needing to be simple, it's more the answer isn't.

    What version of AS are you using, what have you got working so far ( ie, have you already got baddies in the game with collision checks ), how are you currently detecting platforms ( Is it tile or art based ), etc.

    It's far too generic a question for anyone to be able to give you a decent answer. The basic solution is that when you do a collision check for the players feet against the spring you force a jump with increased velocity, but that's just a pointless answer as that's just basic theory, and I'm assuming you had that much figured anyway.

    Show what you've got running so far, explain what you've tried and why you think it didn't work. No one's going to be able to just post working code here for you on what you've said.

    Squize.

  3. #3
    Member
    Join Date
    Jul 2012
    Posts
    39
    Squize is right... You haven't really explained your game's engine... This question is just generic. And yes you want to make the player jump, but higher, after collision with the spring.

  4. #4
    Junior Member
    Join Date
    Aug 2012
    Location
    usa
    Posts
    1
    I can't jump on spring because i don't have any practice for this

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