How to stop gravity while using it later in Windows
QuestionMan
Member Posts: 81
I have a ball that is shot at an angle upwards, I then want it falling all the way down in the middle of the screen. I have my background and buttons set to 'false' on 'movable' and that works fine for them. But when I try to change the ball's 'movable' ability, it says invalid path. (ie. I want to launch the ball after a click, which it does, but right now the gravity is ON the entire time, I only want it affected after launch) Is this just a windows issue or am I missing something? Thanks
Comments
What happens: ball starts falling, touch button, launches upward but still falling
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
The problem is the gravity isn't supposed to be triggered (at least on that object) until after I click the button.
To solve this, I'm assuming the 'movable' field has to be unchecked, and when button is clicked, have self.physics.movable changed to 'true'
Did this, and it wont move at all now. It doesnt seem to recognize the change attribute for self.physics.movable.
Any ideas?