Jump to content

  • Log In with Google      Sign In   
  • Create Account

Question about game replay(combat replay)


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • This topic is locked This topic is locked
1 reply to this topic

#1   Members   -  Reputation: 101

Like
0Likes
Like

Posted 16 May 2014 - 02:29 AM

I am working on game replay 2 weeks,but there are some questions trouble me here.

 

this function just like combat replay of COC.

 

I use cocos2d-x engine,in order to keep game performance on different device,engine use dt(time interval between 2 frames) to adjust animations,actions, move,jump,etc.

 

The trouble is that dt is so different on different device,it's big on slow device and small on quick device,for example,I check collide of someobject when it's moving, in a key time,the x position of object is 1.05 on slow device,the collide occured,but at this moment,the x position of object is 1.04 on quick device,the collide not occur,the logic is different on different device at same moment.the replay is incorrect.

 

If I not use dt, replace it to frame or I kept the dt in a const value(like 0.5),the replay is ok,but the performance is suck,game is running not smooth on slow device,so,this is not a good idea.

 

any suggestion or idea?

 

thanks very much for your help!!



#2   Moderators   -  Reputation: 10606

Like
0Likes
Like

Posted 16 May 2014 - 03:31 AM

Please do not cross post.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS