Change Bounciness Attribute
Night Cab
Member Posts: 57
I'm trying to do the following to an actor, whose bounciness is set to 0.5...
Attribute: if drop is false (drop is a game, boolean attribute)
Change Attribute: self.physics.bounciness to 0
Otherwise: self.physics.bounciness to 0.5
For some reason, there is no change during game play to the bounciness what so ever. Does this just not work?
Answers
Make sure that the ground it's colliding with has a bounciness of 0
GSINVENTION FREE TEMPLATES
CodeMonster,
I checked the ground it's colliding with and yes, it's set to 0. I would think that this would be straight forward but it's just not working.
Make sure your attribute is changing it's value back to true aswell,
If everything is set up right, then I'm not sure why it's not working.
GSINVENTION FREE TEMPLATES
I'm trying different things but just can't seem to get it to work
I checked this as well, still no luck
Yep you cannot change bounciness at run time
@tenrdrmer, thanks for the confirmation
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks guys