having a guy run across uneven surfaces or inclines..

part12studiospart12studios Member Posts: 620
edited February 2012 in Working with GS (Mac)
Hi there, I'm experimenting with a platformer idea and it requires a character to be able to run up and down uneven surfaces.

my current approach and i'm not all that happy with it.. is to use a simple move behavior.. and since i'm going from left to right like most platform games.. i have the direction pointed at 340 degrees.. speed of 40.

the character moves on his own.. so its not like i have to be able to make him turn left and right or jump.. i just want him to run up and down the terrain and not get stuck.. there must be a better way that i can't think of...

Thanks!
Caleb

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    I think dba just came out for a free template for this.

    But to answer your question in the thread. If your already using a move or accelerate behavior for regular movements, you could have it relative to actor instead of scene, and have it rotate to a set angle when it hits a hill, and have it rotate more when it hits steeper hill actors, so it turns to the right rotation and moves up the hill, while keeping the direction in the behavior the same.

    Depends how you have it set up already.
  • MotherHooseMotherHoose Member Posts: 2,456
    Utopian Games
    Darren's great video:

    @};- MH
  • part12studiospart12studios Member Posts: 620
    oh thats super! absolutely perfect! thanks to both of you for the tips! =D
Sign In or Register to comment.