Semi Top-Down game problems
Hi, I''ve been working on a new semi top-down style tile game and was hoping someone here would be able to help me.
My Problem:
When my character walks into an object where his legs are suppose to go under, he walks on top of the object instead
I''ve been working on this for some time now and cant work out a good way to fix it. The only way I''ve found is to split the table into 2 sprites with one section in the foreground layer and one in the background but I am hoping there is a better way than this?
Make sure you render objects in "the back" first. Ergo, first render the floor, then render the character, then render the table ^_^
Keep a data about his "bottom coordinate"...the table will have this at his facing legs which will be under (as value) character "bottom coordinate". Ordonate after this value and render from top do down of the screen (higher bottom coordinate means the object is upper on screen and should be rendered first).
-----------------------------
Codman - "The source for all things"
"We design for eternity"
Mail: Codman_Wu@personal.ro
-----------------------------
Codman - "The source for all things"
"We design for eternity"
Mail: Codman_Wu@personal.ro
-----------------------------How to create atmosphere? Bring in EMOTIONS!
You should THINK of a system (and implement it of course) that sorts your sprites on drawing order.
.lick
.lick
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement