Move/jump in an arc from one platform to another

fuzzeemicfuzzeemic Member Posts: 47
edited November -1 in Working with GS (Mac)
I have searched, but not really found what I want to do.
Refer to this pic...

image

I want to have my actor jump in an arc (half of a sin wave?) from one platform to another. The actor will start with 0 velocity (stationary) - jump and end up with 0 velocity (stationary again)

Any tips will be greatly appreciated. :-)

Comments

  • rebumprebump Member Posts: 1,058
    See forum user FireMapleGames' platformer tutorial demo projects or the lame built-in platformer demo project. Those should get you started.

    http://gamesalad.com/p/firemaplegames/games

    or

    http://gamesalad.com/wiki/tutorials:quickstart_part_1

    (but select the platformer template rather than the space rocks template)
  • fuzzeemicfuzzeemic Member Posts: 47
    It's not actually a platform game... I just used the word platform loosely to describe the picture.
    The platform samples don't really cover what I'm trying.

    Any other ideas?
  • rebumprebump Member Posts: 1,058
    You could use the "move in a perfect circle" tutorial and instead of using the "game.Time" as the driving force for the changing value, use another player's rotation to drive it. Then in the other (rotating) player, you can control the rotation to only be an arc.

    However, you should be able use the jumping in the platformer tutorials to get an arc jump not using the amount of overhead the above would require...thus my recommendation to play with them since the characters generally jump in an arc.

    Scitunes had a post a few months ago about controlling an airplane in half circles at the end of back-n-forth movements. It was timer and rotation based in a different way. Maybe you could pick something up from that.
  • fuzzeemicfuzzeemic Member Posts: 47
    Thanks for the follow up rebump :-)
    The perfect circle tut may help. Worth trying the maths anyway.

    I never found a platform tutorial (FMG or other) that covered jumping. The sample project with GS allows the actor to jump by simply applying an upward velocity relying on active sideways movement to jump. I want to start from stationary... I have tried applying north-west velocity with timed downward velocity, but didn't have any success.

    I'll keep trying...
  • CapCap Member Posts: 225
    I'm interested to know how to do an arc jump, too. Has anyone found out the solution by now?
  • fuzzeemicfuzzeemic Member Posts: 47
    For what it's worth I have uploaded my solution to the above to my profile.
    http://gamesalad.com/game/play/55423

    Not the most elegant of solutions, but it works exactly the way I want it to. :-) Particularly starting and ending stationary.

    It's actually a clue to one of the games I am working on which I will announce in due time.
Sign In or Register to comment.