I've made my own side scrolling code but it works the wrong way.I looked at kunarks demo which has the one thing I want but is to complicated to stuff into mine.I want so you can't go through a mob.I looked at grim kids demo and that one is closer to mine.Could someone looks at his and see if you could add what I want into his? I don't really want to give my code away.
Thanks in advance.
ID:171310
Oct 15 2004, 10:41 am
|
|
CodingSkillz2 wrote:
I want so you can't go through a mob. A mobs density is set to 1 as default, so there are two reasons your mobs will go through each other:
/Gazoot |
In response to Game sabre
|
|
No which is why I said my coding.
|
In response to Gazoot
|
|
Density=1 but that only works from the sides.West and East.
|
In response to CodingSkillz2
|
|
CodingSkillz2 wrote:
Density=1 but that only works from the sides.West and East. If you are using Move() and moving a mob with density=1 into another object with density=1, the mob will stop, no matter what direction it comes from. Take a look at the code and find out where it's not using Move(), or where density is set to 0. (Hint, search for "loc" and "density") /Gazoot |
In response to Gazoot
|
|
I see,Thanks.
|
In response to CodingSkillz2
|
|
CodingSkillz2 wrote:
I see,Thanks. Let me know if (and how) you fixed the problem. It's always nice to see when progress is made! :) /Gazoot |
I hope you arent just putting some demos together....