IMO it would be alright to save the shapes in a separate file. It may even be the best way, since you e.g. don't have to waste resources on loading shapes if you only need the images for some task.Originally Posted by Andreaz
Well I won't deny the possibility that somethings is wrong with my code, but as far as I can see the code I posted is the only place were I manipulate the horizontal position.Originally Posted by Andreaz
I played your platform example and experienced the same problem as in my example.
If you keep on walking into tile (32, from the right side, the player will "shake" like in my example. But it works fine when if you hit a tile from the left like tile (40,.
For me it seem like theres something a bit wrong with the collision info when you hit the shape on the right side.
Unfortunately I still can't' debug it in Delphi. It does make it hard to find the exact cause of the problem.
Yes I naturally meant TPHXBox and not TPHXShape.Originally Posted by Andreaz
I've made the same error and didn't discover it either until i tried a rectangle instead of a perfect square.
[/quote]
Bookmarks