Help with curved surfaces and collisions
eskillroy
Member Posts: 1
Hey guys,
It's been roughly a week since i've started with GameSalad and I'm happy with what I've seen so far. The numerous templates and forum posts have helped me get my idea of the ground.
I am currently facing a problem with curved surfaces and collisions. While the core mechanic of the game does not rely on curved surfaces, having them in the game will immensely increase its polish. As we are restricted to just Squares and Circles, I have realized that collision-less sprites will make up the main images that the player will see, but invisible collision surfaces have to be implemented.
Is this the right way to go? Also how do I achieve this with just squares (close placement of square edges will take time)? And once I have achieved that, is there any way to duplicate the collision layer across different scenes in the same project?
It's been roughly a week since i've started with GameSalad and I'm happy with what I've seen so far. The numerous templates and forum posts have helped me get my idea of the ground.
I am currently facing a problem with curved surfaces and collisions. While the core mechanic of the game does not rely on curved surfaces, having them in the game will immensely increase its polish. As we are restricted to just Squares and Circles, I have realized that collision-less sprites will make up the main images that the player will see, but invisible collision surfaces have to be implemented.
Is this the right way to go? Also how do I achieve this with just squares (close placement of square edges will take time)? And once I have achieved that, is there any way to duplicate the collision layer across different scenes in the same project?
Answers
Wait a moment and I will make you up a quick project to illustrate what I mean . . . .
Personally I'd try and procedurally generate the curved surfaces with a rule so you need only copy that rule/actor to the next scene.
http://www.mediafire.com/?ntwtemcrp58gcvo
Let the balls fall into the 'bowl' then use the white slider at the top (it only moves left and right) to change the size of the blocks making up the 'bowl'.
Drag it to the left to make them simple collision points - or to the right to make them into a joined up curve - then pick the ball up and roll it down the sides - obviously the more joined up curve will give a smoother roll and the single points will be more bumpy.
But if your project is a car racing game then you might only need to prevent your cars from leaving the track so single points might be fine . . . ?