advanced platform functions

forkliftforklift Member Posts: 386
edited November -1 in Working with GS (Mac)
1. I want my player to be able to grab the side of a ledge. The best way I can wrap my head around this is to have a hidden actor at the side of the ledge that detects player collision.

This doesn't really work because I can't figure out how to make an actor detect the location of the player relative to it.

For instance, if the player is jumping up to grab the ledge from below and he touches the invisible actor, it would trigger a 'grabbing ledge' animation. However, if he were to jump onto the ledge from another and land just on the edge, he wouldn't need the ledge grab animation, but it would trigger anyway because player is standing on/colliding with the trigger actor.

2. Walking on ceiling. I can find no good way to even dream up how to make a character stick to the underside of a platform, let alone be able to walk all the way around it.

Any pointers on these two issues please? Even possible in GS?

Comments

  • shuttercraftshuttercraft Member Posts: 39
    Walking on ceiling- you could reverse the gravity using a acceleration attribute.
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    First it's probably best to not use gravity at all.
    Acc per actor down or up as needed.
    Your jumps will work better too.

    Gravity only applies accelerate to all objects anyways.

    A physics engine style setup is not the way to go for platforming.
  • TaidakenTaidaken Member Posts: 271
    hmm heres a idea, for your ledge grabbing issue, dunno if it would work, and there might be a more simple way of doing it, but for when your char, touches it from the wrong angle and it still plays the ledge grabbing animation, you could create a invisable barrier around the part of the invisable ledge so that your char cant touch it from the wrong side and can only touch it from the angle you want it to touch... if that makes sense.
Sign In or Register to comment.