Page 1 of 1

parallax errors in multiplayer

Posted: 12 Jul 2019, 3:18
by Nezumi
There were always parallax errors in multiplayer mode in all versions. You may want to prioritize other types of errors. Even so, in the doubt I leave this here, and also the scripts that I do not know if I put them correctly.
Thank you


val(ScreenX)=sysval(Player1scrX)
val(ScreenY)=sysval(Player1scrY)
val(ScreenX)=sysval(Player2scrX)
val(ScreenY)=sysval(Player2scrY)

do

call LMove(Parallax4, (val(ScreenX)-sysval(Player1scrX))/(-1.10), (val(ScreenY)-sysval(Player1scrY))\(-2), 2)
call LMove(Parallax1, (val(ScreenX)-sysval(Player1scrX))/(-1.15), (val(ScreenY)-sysval(Player1scrY))\(-2), 2)
call LMove(Parallax2, (val(ScreenX)-sysval(Player1scrX))/(-1.25), (val(ScreenY)-sysval(Player1scrY))\(-2), 2)
call LMove(Parallax5, (val(ScreenX)-sysval(Player1scrX))/(-1.40), (val(ScreenY)-sysval(Player1scrY))\(-2), 2)
call LMove(Parallax4, (val(ScreenX)-sysval(Player2scrX))/(-1.10), (val(ScreenY)-sysval(Player2scrY))\(-2), 2)
call LMove(Parallax1, (val(ScreenX)-sysval(Player2scrX))/(-1.15), (val(ScreenY)-sysval(Player2scrY))\(-2), 2)
call LMove(Parallax2, (val(ScreenX)-sysval(Player2scrX))/(-1.25), (val(ScreenY)-sysval(Player2scrY))\(-2), 2)
call LMove(Parallax5, (val(ScreenX)-sysval(Player2scrX))/(-1.40), (val(ScreenY)-sysval(Player2scrY))\(-2), 2)

call sleep(1)
loop

Posted: 12 Jul 2019, 5:06
by NESTED ERNEST
I don't think it's a real mistake.

According to your script you are taking as a reference the coordinates of the second player, is that the first two lines of your script were replaced by the next two.

Posted: 12 Jul 2019, 5:15
by Nezumi
NESTED ERNEST wrote:I don't think it's a real mistake.

According to your script you are taking as a reference the coordinates of the second player, is that the first two lines of your script were replaced by the next two.

Do you know the parallax script to work correctly in multiplayer?