Guys please can you tell me how can i make this hollow i mean hollow part should be hollow but boundaries need to solid like is the object goes beyond the colored part it would fall down or kind physics applied.....
It would really great of you if capx would possible!
thanks
IMAGE REFERENCE :
I guess I would handle it something like this:
Inside Outside Bounce
LittleStain thanks man but need in same way as what i asked!
Anybody else
Is it a problem if you do it with several parts? You could make a sprite of each part and put it together as a circle.
But i need it to be rotate like wheel! like object need to enter into this circle by tapping but when they stop tap it would drop if the hollow stuff comes up!
I tried something. You have to set the origin of the circle better than me, and the pieces are not really arranged like a circle.
https://drive.google.com/file/d/0B5FlDY ... sp=sharing
With a big help from R0J0hound.
rotating-a-sprite-by-its-middle-not-its-origin_t146141
thanks man it worked but i need in portrait view can you make it possible here is capx though when i applied same angle and xy part i getting this <img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing"> !
HERE IS CAPX : https://mega.nz/#!phgkTJoY!kMhsDwJ2pG6e ... B_5fFN-bvA
You didn't understand that centerx should be x-coordinate of the center of your circle?
Well bro really noob to C2 just learning it thats why asked which part should need to be edit!
Well, like I said, the global variable centerX should be the x-coordinate of the center of your circle and the global variable centerY should be the y-coordinate of the center of your circle.
All should work perfectly if you change that..
not getting this maths part! please capx would helpout!
centery = 1363
centerx = 402
Not perfect, but pretty close..
If you want it perfect, using my solution to position your sprites would be better, but this is pretty close..
LittleStain thanks man but i need the circle to stay where it is just need the circle to rotate like wheel
Develop games in your browser. Powerful, performant & highly capable.
change those global variables in the capx you linked to the numbers I gave in the above post and that is exactly what happens..
Those numbers are the center of the circle and as such the point around which the segments turn..
Yup after applying that part its giving little bit within screen but still circle is changing its position i need it be stay where it is but to be rotate!
this what happen after i put your given global variables : http://i.imgur.com/OM4MiWH.gif