Question
abhi19
Member Posts: 9
Why is my player jumping up and down constantly?
I made an actor attribute for the player called 'on ground'. When the player collides or overlaps with a platform and the Linear Velocity. Y is below 10 yet higher than -10 it turns the attribute 'on the ground' to true. The up key makes the player accelerate up, but only if the 'on the ground' attribute is true. Also when the up key is pressed the 'on the ground' attribute becomes false.
But when I preview it my player just bounces up and down without me even pressing the up key.
Also is there a way to 'group' two types of actors together?
I have a top layer platform and then a bottom layer platform. I want to group them together so I dont need to pull both of them out every single time I want a platform. Is that possible?
Thanks
I made an actor attribute for the player called 'on ground'. When the player collides or overlaps with a platform and the Linear Velocity. Y is below 10 yet higher than -10 it turns the attribute 'on the ground' to true. The up key makes the player accelerate up, but only if the 'on the ground' attribute is true. Also when the up key is pressed the 'on the ground' attribute becomes false.
But when I preview it my player just bounces up and down without me even pressing the up key.
Also is there a way to 'group' two types of actors together?
I have a top layer platform and then a bottom layer platform. I want to group them together so I dont need to pull both of them out every single time I want a platform. Is that possible?
Thanks
Comments