Solved change of direction in the level and the item Trolly is no longer there.

Question that is answered or resolved.

Steven1985

Active member
Hi, in the game BOR 1.0, to the level 6aeasy I changed only the direction from left to right but the item Trolly is not longer there and the partner CPU, having hostile obstacle, acts as if he sees it. Could you explain this thing?
 
Solution
How to determine whether the position is strict or not?
Actually, that's your design choice. Some levels require obstacles as part of the level theme.
For instance, bar/restaurant have chairs and table set placed in certain formation and position in the level as decoration. This means their position is strict.
However, if your obstacles are just containers to give item for players, they don't need strict position. IOW you can spawn them offscreen at desired scrollpos.

Since you are editing levels from original Beats of Rage, let's assume trolly's position is not strict.
I changed only the direction from left to right but the item Trolly is not longer there

Changing level direction has direct impact on how entities especially static ones should be spawned.
Obstacles, usually, are spawned offscreen right in direction right levels to prevent them appearing from thin air. Since player scroll to the right, those obstacles will eventually appear on screen while scrolling.
However, in direction left levels, the spawning rule is the opposite which is spawned offscreen left. This is most likely the cause of trolly not appearing on screen, that is it is spawned on offscreen left but player is scrolling to the right making the trolly never be seen by player.

the partner CPU, having hostile obstacle, acts as if he sees it.

Cause he DOES see and find the trolly. Enemies and NPCs can target entities they are hostile to even if they are offscreen.

With all of that, you have to redesign obstacles placement after changing direction from left to right. If their position is strict, you'd need to do some math and change when obstacles are spawned. But if their position is not so strict, you only need to change where they are spawned, such as if they are spawned offscreen left before, now they should be spawned offscreen right.
 
Changing level direction has direct impact on how entities especially static ones should be spawned.
Obstacles, usually, are spawned offscreen right in direction right levels to prevent them appearing from thin air. Since player scroll to the right, those obstacles will eventually appear on screen while scrolling.
However, in direction left levels, the spawning rule is the opposite which is spawned offscreen left. This is most likely the cause of trolly not appearing on screen, that is it is spawned on offscreen left but player is scrolling to the right making the trolly never be seen by player.



Cause he DOES see and find the trolly. Enemies and NPCs can target entities they are hostile to even if they are offscreen.

With all of that, you have to redesign obstacles placement after changing direction from left to right. If their position is strict, you'd need to do some math and change when obstacles are spawned. But if their position is not so strict, you only need to change where they are spawned, such as if they are spawned offscreen left before, now they should be spawned offscreen right.
How to determine whether the position is strict or not?
 
How to determine whether the position is strict or not?
Actually, that's your design choice. Some levels require obstacles as part of the level theme.
For instance, bar/restaurant have chairs and table set placed in certain formation and position in the level as decoration. This means their position is strict.
However, if your obstacles are just containers to give item for players, they don't need strict position. IOW you can spawn them offscreen at desired scrollpos.

Since you are editing levels from original Beats of Rage, let's assume trolly's position is not strict.
 
Solution
Actually, that's your design choice. Some levels require obstacles as part of the level theme.
For instance, bar/restaurant have chairs and table set placed in certain formation and position in the level as decoration. This means their position is strict.
However, if your obstacles are just containers to give item for players, they don't need strict position. IOW you can spawn them offscreen at desired scrollpos.

Since you are editing levels from original Beats of Rage, let's assume trolly's position is not strict.
Thank you very much.
 
Back
Top Bottom