6,318 reputation
11741
bio website
location Tehran, Iran
age 23
visits member for 3 years, 7 months
seen 9 mins ago


Oct
16
awarded  Nice Answer
Sep
17
comment What makes Unity3D games look so similar?
this answer actually very true, and it's not restricted about unity games. For example you can easily recognize UE3 games, CryEngine3 games or even Source Games. Even the heavily moded Engines (like the one used in FarCry3 brings some traces of original engine's rendering result, which makes it kinda easy for anyone to tell what's under the hood. I guess shaders, and then lightening have the most impact in this case. but we shouldn't forget about other smaller (less similar) details, like LOD, or texturing or programming habits, or resource file organisation encouraged with each engine.
Sep
13
comment How can I modify PlayStation 1 games?
what about creating an image file from that CD, modify it, and then burn it down again? though I think for such a process to work your device should be jail broken?
Sep
13
comment How can I modify PlayStation 1 games?
@Evan I'm pretty sure it's possible, since I've seens some modes. in that case it was PES6 on PS2, but I think the procedure should be almost same. in the mod I'm walking about almost all players had all their properties maxed out.
Aug
14
comment Converting data file of Sprite Atlas from JSON to Cocos 2D
regarding of your first paragraph, note that he has the JSON atlas, he want to convert it to cocos2d format (aka. TP defautl export format)
Aug
6
revised Data structure for random outcome from a hit probability table
added sample code.
Aug
6
answered Data structure for random outcome from a hit probability table
Aug
2
comment How to switch sprite animations in cocos2d-x?
@haxpor removing stopAllActions, won't be that much of good idea. Since he'll end up running two animations at once. also note that using stopAllActions itself is not that good idea either, since there might be other actions (like CCMoveTo) in progress. It's much more better if you explicitly call stopAction(currentAnimationAction).
Aug
2
comment How to switch sprite animations in cocos2d-x?
@nosmirck I guess it's because no one retained that _cached_idle_animation. when you first call run action, that action is retained by scheduler, later when you stop all actions, it's released and therefor gets deleted. finally when the jump animation is finished, you are trying to run an action which was already deleted, and that'll cause access violation.
Aug
1
revised How to set multiple animations in cocos2d-x
added 440 characters in body
Aug
1
comment How to set multiple animations in cocos2d-x
it was not properly organised answer and I was not entirely sure about it being correct, so I just left it as a comment! but since you say it actually helped you, I've posted same thing as an answer to let others later looking at this question get a proper solution!
Aug
1
answered How to set multiple animations in cocos2d-x
Jul
24
comment How to set multiple animations in cocos2d-x
it's just a hunch but I think you should retain each animation created in the last line of HelloWorld::createAnimation. something like _charanimation[a]->retain(). and if that fixes the problem you should release all the animations in HelloWorld::~HelloWorld() to mark they are not needed any more, at least not in this class.
Jul
20
comment How can I track how “well-lit” a player is so that I can determine if my AI can see him or her?
have you tried rendering to a texture? maybe with a custom shader?
Jul
9
awarded  Self-Learner
Jul
7
comment How to hook into a game written in C++
it's not an easy job, if you don't already have lots of programming experience don't even think about it.
Jul
6
comment Convert int to Color
@ott-- compilers usually convert dive operator into shift operators in optimization stage. and for those who are not comfortable with binary operations, using div and mod are much easier both to use and to understand.
Jul
6
answered Convert int to Color
Jun
20
awarded  Popular Question
Jun
17
awarded  Constituent