AS3 2.1 Port (Alchemy), WCK Update and Kinematic Demos

Hi, I started to make my platform game with Box2d, but now I want to rewrite it using WCK cause with it I can make more advanced levels easily. Could you please tell me what disadvantages WCK has in comparison with "pure" Box2d cause I see that people use WCK rarely?
it does not work on iphone.
(swf->ipa)
🙁
cot45 wrote:
Hi, I started to make my platform game with Box2d, but now I want to rewrite it using WCK cause with it I can make more advanced levels easily. Could you please tell me what disadvantages WCK has in comparison with "pure" Box2d cause I see that people use WCK rarely?


Some people use Flex (Flash Builder now) and don't use Flash for layout at all. There's also probably a slight overhead cost to using WCK, but this will be the case with any engine that renders Box2D scenes. Also, I think people find it fun to just write their own engine.
zihyfw wrote:
it does not work on iphone.
(swf->ipa)
🙁


The iphone publishing is pretty new - haven't looked into it yet. Where does it fail / what errors are there?
I noticed that when pressing "enter" accidentally, the flash player plays the main timeline and rushes through all the worlds/levels which is irreversible and may crash the player.
Is there a way to prevent this ?
Frnk wrote:
I noticed that when pressing "enter" accidentally, the flash player plays the main timeline and rushes through all the worlds/levels which is irreversible and may crash the player.
Is there a way to prevent this ?


I just attempted this in Chrome, Safari & Firefox - hitting "enter" did not fast forward the SWF. However I did open it up in the standalone flash player, right clicked, hit "play" and got exactly this behavior. This is easily preventable. Just put a "stop();" on each frame of the main timeline, or put a "stage.stop();" in the "create();" function of wck.World (not tested - "stage.stop():" might not be the exactly right code). In production I usually don't use the main timeline anyway and add worlds to the stage via code.
mayobutter wrote:
zihyfw wrote:
it does not work on iphone.
(swf->ipa)
🙁


The iphone publishing is pretty new - haven't looked into it yet. Where does it fail / what errors are there?

I have gotten it to work on my iPhone 4, though it runs absolutely horribly..this is the case for any intense Flash authored ipa though.
Thanks, mayo

In the standalone player and projector it is Contol+Enter
You can still advance through levels with that even though i put a stop in each frame.
Adding levels by code may of course prevent this.

In the browser it won't work as enter is disabled

Cheers
Hi, i'm looking WCK example from emanueleferonato.com and basicPlatformer from demo.fla from original site. The first example with 2 bricks on the stage compiles for about 10-12 sec, the second with a hero and game level about 20-25 sec. This seems quite long for me, because I often do small changes and then look at the result. Is there any way to speed up compile time for a project that uses WCK ?
cot45 wrote:
Hi, i'm looking WCK example from emanueleferonato.com and basicPlatformer from demo.fla from original site. The first example with 2 bricks on the stage compiles for about 10-12 sec, the second with a hero and game level about 20-25 sec. This seems quite long for me, because I often do small changes and then look at the result. Is there any way to speed up compile time for a project that uses WCK ?


This probably won't help much those examples, but from my experience, I would just suggest that you don't introduce any dynamic text fields (at least TLF text fields if you're using CS5). This makes it brutal. Otherwise, I personally find the payoff in terms of results to be worth the wait. I tend to compile a lot as well.

There might be something to be said for keeping your vector stuff simple, but I cannot speak to that end just yet. I am working on a project where the designers are giving me some tremendously complex vector assets from Illustrator. I will be able to share more in the next month as we hone the pipeline and processes out past this prototyping phase.

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