Attribute and Collision Detection Problems when Jumping

scitunesscitunes Member, Sous Chef Posts: 4,047
edited November -1 in Working with GS (Mac)
I cannot get gamesalad to consistently recognize when my actor is ascending or descending. I am trying to make it so my character can jump "through" a platform and then land on it (think doodle jump). I have rules that say when self.linearmotion.y is less than or equal to zero then collide with platform. After getting very frustrated I even added a display text behavior and had the actor display the linear.motion.Y attribute. I cannot get it to consistently check that attribute. I cannot think of a work around. Any ideas?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Has anyone else had this problem? Does anyone have a game where you jump through a platform and then land on it? Thanks!
  • butterbeanbutterbean Member Posts: 4,315
    I did attempt to do this with a platformer game that I have, but i found it to be inconsistent, and so I just eliminated the idea of doing it.

    Here's what rule I had: the rule within the player:

    When all conditions are valid:

    Actor receives event: overlaps or collides with actor: standing platform
    " " : Invisible platform

    Otherwise: Collide with standing platform.

    I then created an invisible platform, which was placed just underneath the standing platform, and it worked "okay" but not consistent enough for me to utilize it.

    If there are any other options, or better ways to do this, anyone chime right in!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Seems like something to work on for future releases - better collision/attribute recognition.
  • CorellaCorella Member Posts: 37
    Hi,
    I played around with this, and tried a similar approach to what you described, but it seemed to work fairly well, though there are some general gameplay issues with jumping etc. Take a look and see if it's helpful. I made the source downloadable.

    http://gamesalad.com/game/play/28865
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Thanks! I'll take a close look and see what I can do to apply to my game. Appreciate the help!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    working great so far. thanks again!
Sign In or Register to comment.