Well I figured out that if I move the ball higher up it stops bouncing up and goes back and forth like it should. But I also notice that at one ball it moves down just a bit when it bounces back, and when it hits the other wall it goes up just a bit. Odd
Arg I want to pull my hair out. I did a lot more to the sample game I am playing with and lots of stuff is working now and suddenly the stupid ball has started bouncing off the wall and going upward again. All the walls are set with zero angle and so is the ball. Going to include my file again so someone can help me. Thanks!
ok I am all set now. Delete the walls. Made new ones and it all works fine. thanks for all your help!
Ok so it's better. It travels to the right but when it hits the wall it bounces upward and off the screen.
Ok so I realized what your were talking about and I went into the images and set the origins to middle. That sure helped. Thanks!
Ok well I create a circle in paint.net then when I added the ball sprite I edited it with the built in image editor and pasted the circle in there. Apparently there is other stuff it needed that I messed up eh?
Develop games in your browser. Powerful, performant & highly capable.
I don't see a difference in the settings yet yours works so I am sending my capx
Set speed down to 100. Checked the collision polygon as well. Still going off the screen. I have solid on the walls and solid and bullet on the ball.
Ok I added bullet & solid to the ball. Put up walls on each end of the viewport and set the bullet behavior to bounce off of solids. The walls have solid as well. But what happens is the ball just runs thru the right wall and disappears.
I don't even know how to make the ball roll in the first place. I want it to automatically start rolling back and forth between walls when the game starts. It will be an obstacle to the player to jump over. I am totally new to this. I tried using bullet but it just goes one way.
I am trying to figure out how to make a ball sprite roll back and for on a platform between two walls. I tried bullet but only goes one way.
Thanks. I am totally new at this.
Member since 11 Sep, 2014