0 Favourites

Custom shapes in Js/Html5

  • Hi all,

           I want to create shapes that are bit complicated and beyond the physics bounding box editor in c2.

    In other frameworks, like cocos2d, corona sdk etc I would use physics editor and then import the shapes by requiring a library. It can also spit out raw data as well.

    What I'm looking for now is an example of how I would code a custom shape in c2, perhaps in js, and where to do it?

    In corona sdk it's something like shape = {32,-18,41,12,-23,29,78}

    Basically it's a set of coordinates that makes convex of concave polygons. In Js I can see from the box2djs how it's done, but since we're dealing with c2, and it's API I want to make sure I know where to look and a basic example of how to do such a thing.

    Hopefully that makes sense, I understand it's a bit advanced but it's something I'm used to in other frameworks and just want to see if I can expose that here.

    Thanks! :)

    -Nick

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[Plugin] Custom Draw
31 4,712
Pandy's avatar
Pandy
Unread hot topic
27 9,967
AntonioAJ's avatar
AntonioAJ
Unread hot topic
26 4,781
Bad Username's avatar
Bad Username