6,551 reputation
11945
bio website
location Tehran, Iran
age 24
visits member for 4 years, 1 month
seen 6 hours ago


Jun
3
answered Box2D networking
Jun
3
comment Determine animation frame from interval
@chris you are right, it might not be optimized for random access but do we realy need random access in frames? they usualy just iterate and just adding an addition operator while changing iteration doesn't increase the computing time.
Jun
2
comment Fix joint length in Box2D?
again I made a mistake that only fixed the problem because i accidentaly lowered the gravity. after changing it back to normal it was just the same as before.
Jun
2
comment Fix joint length in Box2D?
after undoing many changes to apply your solution, I found what made them to expand. It was because when I increased the node in my rope their fixtures get inside one another and that made the joints expand, just seting all the rope fixtures to sensors solved my problem, thank you for your advise.
Jun
2
comment Fix joint length in Box2D?
that's right, i can even post my code here if you like'
Jun
2
comment Fix joint length in Box2D?
at first they were both 1 (due to default density of fixtures) but then tried changing density to zero (the masses were still 1 because objects were dynamic) and it was same as before, no changes.
Jun
2
comment Fix joint length in Box2D?
I know that, but in my case a fixture and two revoluteJoints produces better results than a DistanceJoint;
Jun
2
comment Fix joint length in Box2D?
I tried changing damping ratio and/ir frequencyHz to any valu that i could imagine, including the onces you suggested but didn't help at all.
Jun
2
answered Fix joint length in Box2D?
Jun
2
comment How to manage game components and their attributes?
any object that inheriet CCNode can be placed in scene-graph, you can start by reading how CCSprite is implemented. I think it's easy enough to undestand and provide you with the whole idea of what you have to do to create some Cocos2d object.
Jun
2
asked Fix joint length in Box2D?
Jun
2
comment How to manage game components and their attributes?
then are you asking about the class hierarchy you are going to define?
Jun
2
comment How to manage game components and their attributes?
did you try reading some basic manuals of cocos2d before asking this question? just studing cocos2d tests (or even helloworld sample) would give you the idea how to do all these things in cocos2d.
Jun
1
comment How should I structure my Android platform board game?
Not nessocerily answering your question but I think usualy doing everything using opengl is faster than doing it without it(dont know if this also applies to android). and I'm just working with [cocos2d-x](www.cocos2d-x.com), it's a 2d GameEngine for android/iphone and I think it'll help you alot if you start you project with this engine.
Jun
1
comment How can I easily implement swinging in a platformer game?
after some tries i guess i'll go trying box2d for this issue and by the way you have to change that code so that you have dx = player.x - attachpoint.x and dy = player.y - attachpoint.y.
Jun
1
revised How can I easily implement swinging in a platformer game?
fixed a mistake in code
Jun
1
comment Who controls my player's movement?
may i ask why downvote this time?
Jun
1
comment How can I easily implement swinging in a platformer game?
so is the code i edited into your answer (sorry about that but i didn't find any place better to add it) the one you are suggesting?
Jun
1
suggested approved edit on How can I easily implement swinging in a platformer game?
May
31
revised How can I easily implement swinging in a platformer game?
added 581 characters in body