Avatar moving Slowly!

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Bosskafett
Posts: 41
Joined: 24 Jan 2012, 00:04

Avatar moving Slowly!

Postby Bosskafett » 16 Mar 2012, 15:54

Hello fellow SFS Fans,

I have made another avatar chat based game with SmartFoxServer. Everything works really well thanks to SmartFox apart from the movement of the avatar. The thing is that it moves on other screens, but is very slow and gradual compared to the client's screen. I would appreciate some support in this as this has never happened before.

This is the only thing I've changed:
I have transformed the Mouse Listener to a function:
'function movePlayer(){'
and I have implemented a movie clip which fits the exact area necessary for the avatar to move:
'on(press){movePlayer()}'

thanks,
Jack
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar moving Slowly!

Postby rjgtav » 18 Mar 2012, 21:59

Hi.
Well, what do you mean by slow? You mean it starts at a later time, but takes the same time to reach a specific position, or does it take longer (like one second more) to reach the final position? In the last case, is that delay consistent? I mean, does it always just take 1 second more to reach the destination?
Does it at least reach the correct destination?
If you could share some of the code it would help.
And that issue you're not facing is not server-side related, only client-side. That's why I'm moving this to the General Discussion session.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Bosskafett
Posts: 41
Joined: 24 Jan 2012, 00:04

Re: Avatar moving Slowly!

Postby Bosskafett » 23 Mar 2012, 12:30

Basically it shows signs of moving but it stops and then moves a little, then stops and when you remove a user from the room it suddenly moves properly but then stops and starts moving slowly again. Overall it could take up to 5 munites to complete a single movement in slow steps. But the movement is normal on the client's screen but not on other screens. :?:
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar moving Slowly!

Postby rjgtav » 26 Mar 2012, 21:32

Well, it looks like you're always sending updates to the other users that your character is moving... And so on the other clients it is always resetting the movement...
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 67 guests