Hi, I'm working on a 2D RPG. I haven't started coding it yet, as I am still in the design stage. I was wondering if someone could help me out with some of the drawing (not making art) and collision aspects of the game. Here is what I need some help on:
-Getting objects to appear behind certain objects ex. If I have a sprite of a tree and I am above the object, how could I make it so that if I walk past it, the tree will appear in front of the character so that you can't see the character when its behind it.
-Getting only part of a sprite to allow objects to pass through it ex. Again with the tree example. Is there a way make only the stump to stop the user from passing through. The only way that I could think of would be to have two seperate sprites, but I would like to know if there was a different way.
-Allowing a sprite to only pass through the other sprite when its going in a certain direction ex. If I had a sprite of a cliff, how could I make it so that you could fall down the cliff, but not go back up it.
I'm not asking you to write the code for me, just give me some ideas and pointers, but a little example code would be appreciated.
I'm not who you think...
