|
Hi,
I have just started working on box2d and was trying to get a grasp of things by following a few online tutorials, now in one tutorial every thing was going on well and the flash file was also working well till i opened it in flash cs4 and compiled it it gave the following error ---
1020: Method marked override must override another method.
Now when looked in to my code is was something like this ---
//////////////////////////////////////////////////////////////////////////////////////////
override public function Add(point:b2ContactPoint):void { jumpable(point); super.Add(point); } override public function Remove(point:b2ContactPoint):void { LevelVars.jump = false; super.Remove(point); } override public function Persist(point:b2ContactPoint):void { jumpable(point); }
///////////////////////////////////////////////////////////////////////////////////////
But when i looked in to my box2d dynamics folder and inside the b2ContactListener.as file these methods were not present, so i download an older version of Box2d the 2.0 version , there the methods mentioned above are given as virtual....
Now when i run, i get this error plus a whole lot of warnings ---
1067: Implicit coercion of a value of type Box2D.Collision.Shapes:b2FilterData to an unrelated type Box2D.Dynamics:b2FilterData.
and a whole lot of warning on b2Proxy,b2Math,b2Pair etc.....
can any one help me here as to how to solve the problem....
i have been really trying hard with box2d , but there are no books or clear solutions to any problems i can find, if any one of your experienced people can please guide me to a working resource with many example i will be really grateful......
Jin
|