Character true on certain platforms and false on others
allc1865
Member, PRO Posts: 777
I have a display text on my character that says, self.jumping to make when he jumps it is true, and when he is on the platform he returns to false.
However, when I set another platform in my scene for him to jump on, once he lands on that platform he stays true instead of returning to false. Because of that, he can't jump and is sluggish when moving left and right. Why is this?
Thanks
Best Answer
-
SlickZero Houston, TexasPosts: 2,870
Did you unlock the platform in the scene and code it? If you did, it will only be working on that one platform. You need to either code the prototype in the actor bin, or option+click and drag a copy of that platform on the stage, and use that. I would code the prototype in the bin, it's better to do it that way.
Answers
Hi @SlickZero, no instances, just prototypes.
Sounds like something in the main actor is not firing correctly, can you post a screenshot of your code?
@SlickZero, hi yes.
Starting at the bottom, try getting rid of that timer in the otherwise section and just have the change attribute behavior in there.
@SlickZero, I tried it and it didn't work.
If you want, send me a PM and attach your project and I will take a look at it in a little while after I get home.
Hi @SlickZero! Thanks for your help! I figured it out!
Awesome @allc1865 What was the problem?
It was an instance. I didn't realize that.