Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » JCS & Scripting

I'm still here and I have a question

GoldRabbit

JCF Member

Joined: Jul 2006

Posts: 219

GoldRabbit is an asset to this forumGoldRabbit is an asset to this forum

Apr 12, 2011, 04:31 AM
GoldRabbit is offline
Reply With Quote
I'm still here and I have a question

I am trying to make a scrolling layer in JCS with Y-speed = 1, Auto Y-speed = 0, X-speed = 0 and Auto X-speed = -3. However, with these settings, when the player runs to the right the layer scrolls faster and when the player runs to the left the layer scrolls backwards. How can I make it so that even when the player is running the relative movement of the layer is not changed, so that it goes the same way and speed at all times?
__________________
so we will shut our mouth when
we are trying to be bastards
and speak loudly when we see injustice
because everybody plays the game this way

saints especially
Seren

JCF Member

Joined: Feb 2010

Posts: 872

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Apr 12, 2011, 05:37 AM
Seren is offline
Reply With Quote
It's an annoying bug which you can't fix (as long as it's not textured layer 8 in which case there probably is some chance, I don't know the specifics though).
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.
EvilMike

JCF Member

Joined: Jun 2001

Posts: 3,478

EvilMike is OFF DA CHARTEvilMike is OFF DA CHARTEvilMike is OFF DA CHARTEvilMike is OFF DA CHART

Apr 12, 2011, 08:38 PM
EvilMike is offline
Reply With Quote
Quote:
Originally Posted by GoldRabbit View Post
I am trying to make a scrolling layer in JCS with Y-speed = 1, Auto Y-speed = 0, X-speed = 0 and Auto X-speed = -3. However, with these settings, when the player runs to the right the layer scrolls faster and when the player runs to the left the layer scrolls backwards. How can I make it so that even when the player is running the relative movement of the layer is not changed, so that it goes the same way and speed at all times?
That's not quite what is happening.

When you set an auto-scroll speed to any layer that isn't 8, the regular scrolling for that axis is always treated as if it is 0 (which you have set it to anyway). This means that the background will scroll on its own, but the player's movement will have _no_ effect on the background scrolling.

In your level, this means that when you run to the left or the right, the background's auto-scrolling is unaffected (it will move at the same speed that it was when you were standing still). Often, this makes it appear is if it is moving more quickly when you run in its direction, or even moving backwards, but this is just an optical illusion. The bg layer itself is not actually moving any faster or slower!

Unfortunately, there is not much you can do about this. You might try setting a higher or lower speed... the illusion caused by how jj2 handles auto-scrolling is a bit less easy to notice when the background is moving very quickly (or very slowly). The effect is worst when the background scrolls at about the same speed as you can run.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 09:33 PM.