One way collision, need help!
Hello everyone.
I am new to gamesalad and an artist so don't know much about programming and logic. I want to create a platformer game in which the player jumps on various moveable platforms and try to reach to the top, something like in sonic jump game https://lh3.ggpht.com/29yxQCmWXpaUQUhM7Vq43ysNWmFNWGDa6Wxn3tbg-YcrgvXvl9mhz7KcIg1juzeyhw=h900 . The problem is, i want the platforms to have one way collision, when a player jumps to a platform above his head, he should go through the platform and lands on the top of platform. When i think of applying collision to the platform, i know the collision will not allow the player to move through the platform above his head, instead the player will hit the platform from bottom and fall down.
I hope i have clarify my problem. can someone suggest or help me with this issue?
Best Answer
-
colander Posts: 1,610
Try putting the collide behaviour in a rule with a boolean condition. Add another rule to turn it of when his y position is increasing and back on when it is decreasing. Or something similar to stop the collide behaviour running while your hero is jumping to the next level.
Answers
Thanks @colander. I just found a video tutorial on youtube which shows the solution. Anyone who has the same problem can look into it.