6,556 reputation
11843
bio website
location Tehran, Iran
age 23
visits member for 4 years
seen 7 hours ago


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
May
31
comment How can I easily implement swinging in a platformer game?
you answer was my second try but it moves with much more speed that it should i'll edit my question and add my code maybe you can spot where the problem is.
May
31
comment How can I easily implement swinging in a platformer game?
I can't get what you are trying to say, when I'm calculating next step I have some constant value for delta_time, and use all the parameters I have (like previus speed, previes position, rope length, etc.) to calculate new velocity, and then add this velocity multiplied by delta_time to the last position to generate new position. if you mean anything else please provide full details in your answer.
May
31
comment How can I easily implement swinging in a platformer game?
for all 3 approches length of the rope is one of parameters I've used to calculate swinging speed. But I can't guaranty that I've used it correctly. I've just made some physical calculations and applied their solved version to game.
May
31
asked How can I easily implement swinging in a platformer game?
May
30
answered Who controls my player's movement?
May
29
answered Help implementing virtual d-pad
May
29
answered Observing particular Port for measuring network game performance
May
29
comment Did first generation Pokemon games use event driven input or poll based input?
@The Communist Duck: why short version of my comment had more votes than mine ? :(
May
29
comment Did first generation Pokemon games use event driven input or poll based input?
I think it doesn't matter weather it was written using input state or based on events, the only thing important is to have a good game control and that can be achived with both methods, also they can be very similar and user might not even feel any difference at all if it's implemented good enough.
May
28
comment Best pathfinding algorithm for a tower-defense game?
in addition to hist answer I can add,first you just have to change these directions only when a new tower is placed, and second for just a simple game you can use bfs, and if your game is a bit just more complicated (some pathes are prefered to some other due to any tile properties) you can use dijkstra to create that arrows.