I've made a quick video to show the problem,
I'm starting to throw things together to see what works. It's all work in progress of course, animations, sprites, textures, blah blah blah the usual "please don't crucify my artwork just yet" comments <img src="smileys/smiley17.gif" border="0" align="middle">
I have two issues with the scrolling background at the moment. The first is that it always seems to 'snap' to the edge of the screen, and 'snap' out again when I move away from the edge. I could always have the player's starting position sufficiently into the level so that the edge of the screen is never encountered, but I would rather figure out what's causing the issue and learn how to avoid it in the future.
Secondly, the Y axis looks a little funky. I think it's because all the layers are set to 100% Y scroll speed, so my eye is telling me that it looks odd since they all move up or down at the same speed - whereas they should be slightly offset. However, changing the Y axis scroll speed led to my background appearing at odd locations (I could just about see the tops of the trees. The rest of the background was buried below the player's position).
Any advice on how to deal with Parallax backgrounds? The only tutorials I could find were for C2.
Bonus Question: Those tree roots my wolf runs right over? I want them to have collision detection. Easy enough - I've created small invisible boxes with the 'solid' attribute, the standard approach in CC platformers. But what I also want to do is have a sprint ability where holding down Left Shift makes the wolf run faster and ignore small obstacles like the tree roots, running right over them unhindered. I looked for a way to disable the solid attribute through events, but couldn't see the option. Eg:
Left Shift button is down --> Obstacle: Disable Solid Attribute
Left Shift button is released --> Obstacle: Enable Solid Attribute
Is there any way to achieve this?
Many thanks for reading, and for any advice you can provide <img src="smileys/smiley12.gif" border="0" align="middle">