Problem description:
Well I made a car demo, it has a "bug" but I honestly don't know how to fix it.
The "Bug" is that if you have 2 cars next to each other they get messed up and the tiles of the cars start stacking. I don't really know how to fix it...Ideas?
Here's the demo -
http://developer.byond.com/hub/Poal/Multi-TileCarDemo
ID:143241
Nov 11 2007, 6:40 am
|
|
Nov 11 2007, 7:33 am
|
|
Okay I fixed the problem, I added like serial numbers to cars, but I have another bug...
|
In response to Poal
|
|
Well, what is it?
|
In response to Jman9901
|
|
Ummm it allows you to drive over parts of the other car...I know why, because when you move it uses
loc.locate(x,y,z) It teleports the 3 pieces of the car, so it can teleport parts of the car onto dense things...I tried using step() but that made even more bugs...Ideas? |
In response to Poal
|
|
Don't teleport it. Have something like
C.loc = src.loc |
In response to Jman9901
|
|
Jman9901 wrote:
Don't teleport it. Have something like C.loc = src.loc But that is teleporting...step() and walk() and move() are not...If something changes your location suddenly and can change it drastically, that's teleporting... |
In response to Poal
|
|
Oh yeah, forgot. Uh, put another topic in the code problems or how-to... Might help. :D
|
In response to Jman9901
|
|
I don't want to spam forums...I tried it with step(), it worked but still made a bug...
|