Problem with an actor not moving through another properly
Im creating a platform game and have a kind of platform that you can move through under certain conditions. Imagine that i am standing on the platform, and press a button, and falls through it. It works if I set up a small experiment but when i do it with my big game the platform do not let me fall through. If I instead destroy the platform he falls through. Here is the kicker, if I jump up, he then falls through it. Why doesnt he just fall through it when i press the button in question? I have searched a lot but not found anything helpful, of course it could probably be lots of things, but im not seeing it and need new ideas.
So, collidable at first, then when it should not be collidable i need to jump (leave the platform) to get it to uncollide so to speak.. it seems i must move at least 5 px up from the platform.. really weird. If I instead destroy the platform he falls right down of course.
How can he collide when the attribute sais he is not to be collided with?
So, collidable at first, then when it should not be collidable i need to jump (leave the platform) to get it to uncollide so to speak.. it seems i must move at least 5 px up from the platform.. really weird. If I instead destroy the platform he falls right down of course.
How can he collide when the attribute sais he is not to be collided with?
Best Answer
-
POM Posts: 2,599
Make a self attribute - boolean - call it "collide with platform"
Now make a rule :
When "self.collide with platform" IS true
Collide with platform .
Now all you need to do is change it to false when you don't want your hero to collide with it , and to true when you do want him to collide with it .
Also don't forget to put the "collide" rule ONLY in your hero actor , and NOT also inside the platform actor .Roy