Gravity on grid? Need Help

larin555larin555 Member Posts: 14
edited November -1 in Working with GS (Mac)
Hello!

I was wondering if you guys know a way to use gravity on a grid?
So it's kind of a platformer grid...if I push the block where there's no platform, I want it to fall but following the grid.

Anyone knows how to make this work?

Thanks!

Comments

  • larin555larin555 Member Posts: 14
    Anyone? I've done some research but didn't find anything.
    Also, using the Codemonkey's demo of Grid movement, how can I make walls...that If my main actor is colliding with the wall, that he won't move, cause there's something to his (left or right).

    Thanks
  • Sunny_1etha1Sunny_1etha1 Member Posts: 41
    I'm working on something very similar presently (more puzzle than platformer, though). It's very early in development, but if I can get a system working I'll try and post a demo of it. Will the player character move freely, or according to the grid as well?
  • larin555larin555 Member Posts: 14
    Hello,

    The character will move according to the grid. No need to set gravity for him.

    Thanks!
  • larin555larin555 Member Posts: 14
    Another thing.

    How can I make a block detect that if there's the actor "wall" to his left or right, it won't move (block.position.X + 40 for instance)...
    I'm using Codemonkey's grid demo.

    Thanks a lot!
Sign In or Register to comment.