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
Avatar moving Slowly!
-
- Posts: 41
- Joined: 24 Jan 2012, 00:04
Avatar moving Slowly!
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
Re: Avatar moving Slowly!
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.
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.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
-
- Posts: 41
- Joined: 24 Jan 2012, 00:04
Re: Avatar moving Slowly!
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
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
Re: Avatar moving Slowly!
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.
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