I'm working on a golf game and getting concerned with my inability to streamline the behaviors and events involved. The player has platform behavior and the golf ball has physics behavior. When hit, the golf ball goes right through the tiled platform, though. So, I tried adding solid to tilemap, but realized that is for bullets bouncing off, not physics sprites. Research showed physics can bounce off other physics, so I gave the tilemap that behavior and it was acting fine.
Now, there are other objects, platforms, enemies etc. that I may, or may not, want the ball to bounce off of, and the thought of adding physics behavior to those sprites seems like a recipe for a boggy game. Perhaps that's wrong thinking? I know I could group the sprites I want to have physics in a family, but is that really less processor intensive? They, essentially, all still have the physics behavior but just in the convenience of a group, yes?
I tried adding bullet along with physics to golf ball just to get that bounce off solids ability, but I don't know how to assign the other bullet parameters so they don't affect the physics of the golf shot. Perhaps this is the best solution if someone could tell me how to set the bullet parameters so they don't intervene.
I also tried adding platform behavior along with physics on the golf ball and that seemed okay, but again, not sure if this is gonna be boggy in the end of it all...
It seems to me, the casual coder, that simply having a "bounce off solids" parameter in the physics behavior, like there is in the bullet one, would be a huge help. It's got to be a common issue I'd think.
I've read the posts I could find on this topic and have had no luck with implementing them successfully... any thoughts on the least processor intense route to accomplish this golf ball with physics bouncing off certain sprites would be awesome!
I saw in this post: where jayderyu mentions the importance of not crossing the streams with physics and platformer! Is this the consensus of the elders here? Either have a platformer, OR a physics-based game, but NOT both in one game...
Would using R0J0hound 's chipmunk physics behavior play nice with the platformer behavior?