Falling Platform trouble

OkyshoOkysho Member Posts: 158
edited November -1 in Working with GS (Mac)
In the interest of enhancing the platforming aspect of my game, I've introduced falling platforms into my game, but they're providing a couple of problems.

1) if enemies step on the platform, it falls along with the enemy despite no rules against it.
2) If my player touches a platform from the side, the platform runs sideways

The rules for the falling platforms are as follows:

collide with: player, enemies

if actor collides with player, accelerate downward speed 2000

That's it. I tried the "movable" and "not movable" not changing it to unmovable just turns it into a regular non-moving platform.

Anyone have any suggestions?

Comments

  • forkliftforklift Member Posts: 386
    in the "otherwise" section of the platform's rules, try setting constrain self.x & self.y to self.position.x & self.position.y

    that way it won't move unless colliding with the player.
  • OkyshoOkysho Member Posts: 158
    Thanks for the reply, this actually doesn't work... For some reason it just doesn't want to work...
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    try unchecking movable and when the play touches interpolate self.position.y to -10 and then set your duration however fast you want it to be.
  • OkyshoOkysho Member Posts: 158
    That did it! Thanks tenrdrmer!
Sign In or Register to comment.