WYSIWYG. Which way to go?

Hello,

I have been learning Box2d flash as3 for the past 3 days, and i know have a good understanding of the basics.
I already had a fair amount of programming experience, so it wasn't that hard to learn.

But i am doubting about which way to go next.
I want to be able to make objects in a What you see is what you get way.
so when i make a square, i want to be able to do it in the flash IDE, and not be forced to hard code it.
I can (and already have) make custom classes that turn a movieClip called B2_Rectangle into a b2PolygonShape through code, and thereby add boxes in the flash IDE, simply by moving those B@_Rectangle mc's into another movieclip, and thereby automatically link that b2_body to that movieClip.

So this all works ok.
but i can only make rectangles and circles this way.

So I would like some advice:
Should I continue to make my own classes and libraries?
or should i use the World Creation Kit?
Or some other tool?
And why?
the problem with WCK is that it's in c++, right? and I'd have to re-learn a lot.
and the documentation of WCK is not that good...

So what would you advice?
Can you elaborate a bit on what you'd like to do beyond "Boxes and Circles"? I've got some extended functionality on top of WCK that I've been working on that could be in the ballpark of what you need.

I will probably not be able to share this stuff for another couple of months until this project wraps since I'm doing it for a client.

In the meantime, I can at least help with your inquiries and point you in the right direction. I've been working with WCK since October and I have really enjoyed it.
Sorry for the late responce, i had some very urgent project deadlines i needed to finish.

"Can you elaborate a bit on what you'd like to do beyond "Boxes and Circles"?"

I'm a designer by trade, not a programmer. I can program fairly well, but I'd like to simplify it.
I want to experiment with box2d, so i don't have an exact picture of what kind of thing i want to make, but generally, I want to be able to use the full functionality of Box2D.

I do have some bad experiences with tools like WCK, in the sense that they do give ease, but take away freedom and functionality.
Basically, I'd like to be able to use WCK to make as much as possible, but retain the possibility to manually change things, and not be restricted to do certain things, just because wck happens to be set up in a certain way.
is this a problem with wck?

So basically, my answer is that i'd like to use as much functionality of Box2D as possible.
WCK really gives you the freedom to work in a very hands on manner that is scarce in Flash when it comes to things of a programmatic nature (physics).

That said, you've got total freedom to go off of that grid and work as you please with other Box2d stuff in code in a way that decouples you from any of the premade components available in WCK. I would personally say that, if anything, WCK has expanded my options.

I've been able to do absolutely everything I have thought of (and had time to put in) on the game contract I'm currently working on using WCK. This game isn't totally physics based, but I've used physics to bring a more traditional feeling 2d platformer some depth and life.

If you ever happen to have any questions about how you might go about doing something, feel free to post it here in the forums and if I cannot help, I'm sure someone else can.

I'm planning to release some base systems that go in step with the WCK engine as it currently stands. A couple examples would be a Trigger system that allows you to set up Trigger based items that can be activated and deactivated and also hold dependencies (think in terms of: I have to do A and B before I can possibly do C). Another big one is the World Boundary functionality. It allows you to specify a rectangular shape that the camera treats as the limitations. That way, when your character runs to the edge of the level, the camera doesn't show "outside" of the graphical representation of your level.
That sounds very convincing.
I think at this point my best option would indeed be WCK.

But I still have a question.
I don't fully understand what adobe alchemy is, but from what i understand, it ports the C code to actionscript, but thereby retains the original C setup.
So, it would be different to use than the actual mannually ported actionscript port Box2dFlashas3, wouldn't it?
questioner1 wrote:
I don't fully understand what adobe alchemy is, but from what i understand, it ports the C code to actionscript, but thereby retains the original C setup. So, it would be different to use than the actual mannually ported actionscript port Box2dFlashas3, wouldn't it?


Yes, the C++ Box2D code is compiled in a way that Flash can use it. Interacting with this compiled code directly via AS3 is very difficult, so there is an AS3 wrapper that that you use (everything in "Box2DAS") that is very similar to the API of the native port. So unless your getting into the gritty details of the physics engine (hacking it, essentially) there really isn't much of a difference.
That sounds great!
I think I'll go for WCK.
Thanks a lot for the help!
burtonposey wrote:
I'm planning to release some base systems that go in step with the WCK engine as it currently stands. A couple examples would be a Trigger system that allows you to set up Trigger based items that can be activated and deactivated and also hold dependencies (think in terms of: I have to do A and B before I can possibly do C). Another big one is the World Boundary functionality. It allows you to specify a rectangular shape that the camera treats as the limitations. That way, when your character runs to the edge of the level, the camera doesn't show "outside" of the graphical representation of your level.


Hey Burton - Did you ever finish your World Boundry functionality? I am new to WCK, and have been hoping to find help or an updated version of the Scroller.as which allows for a more intelligent camera that follows the focusOn object but keeps within the would boundries. Anyone have a solution for a noob programmer like me?

Amanuele Feronato did a nice example you can find here http://www.emanueleferonato.com/2010/05 ... smart-way/ but I would like to know how to implement this sort of follow cam within the existing WCK structure. Anyone willing to translate it to use with WCK?

Also - when I set world to scrollable and focus on my player (using a modified version of BoxMan right now)...the player is not centered on the screen but is "centered" more toward the lower right. What might be happening here? How can I properly center it?

Thanks so much for all your hard work on this. It is truely awsome!
hey Anim8or, wrote you guys an example and a thorough description of what's happening in the code and fla here, viewtopic.php?f=19&t=7178

Btw, that Emanuel person has some cool examples, but man he cannot write explanations for the life of him. As we were developing the project that used WCK, we would joke about that all of the time. Everyone sees really cool stuff and only Emanuel can read it worth a crap, hehe.
Thanks for the link and the help, Burton!

Original thread: https://box2d.org/forum/viewtopic.php?t=6164