Garry's Mod

Garry's Mod

Sidescrollified - Fixed Version
44 Comments
Blue  [author] 10 Apr @ 2:08pm 
@Osakaze

yeah; i do agree, it would be a great feature! I tried to figure out how to add that exact thing earlier today, but since this addon wasnt originally my own code i got kindof confused on how it works.
so unfortunately i wont be able to add the ability to change direction... it seems like the original programmers hard-coded in a lot of stuff to make it sidescroll a specific direction and its pretty difficult for me to understand all the math and other stuff it does.

:( sorry to dissapoint
W. D. Gaster 10 Apr @ 11:59am 
It'd be GREAT if you could add an option...I would think a simple command to change what angle it would be could do it between 0 and 360 degrees, but that's just hopeful thinking
Blue  [author] 10 Apr @ 9:29am 
@Osakaze
i went ahead and looked at the code finally, srry for the late reply. it seems i mis-remembered about there being a way to sidescroll a different direction. but with that in mind i might play around with the code today a little bit and see if i can figure something out. no promises, though.
W. D. Gaster 5 Feb @ 1:24pm 
@Blue
Any suggestions for how to narrow it down? This is a great addon fixed of any bugs and it's held back by this one thing...so if you can find any way to fix it that'd be amazing (the one map set I want to use is rotated 90 degrees the wrong way!)
Blue  [author] 5 Feb @ 9:07am 
@Osakaze

it has been a while since i looked at the code or even used this myself so unfortunately i dont know the answer... i vaguely remember there must have been some way but i dont remember what it was. you might have to check the developer console for commands related to this, using "find"
W. D. Gaster 5 Feb @ 12:31am 
Any way to rotate the camera to side scroll at a different angle? Multiple 2D maps I wanted to try out with this are stuck scrolling the wrong way...
なかの31 4 Oct, 2024 @ 11:28am 
Ah, nice to know about the noclip.

Anyways, the screenshot of the odd aiming. The cross is where my mouse is at, but the character. The aiming really feels off.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3342628956

Edit: Odd, the aim seems to be working now as intended (as in the weapon aim actually goes on mouse reticle).
Blue  [author] 4 Oct, 2024 @ 10:19am 
@なかの30

its been forever since i did any updates to this addon so it may have slightly broken, i'll look into it.

as for how to go down, just aim down and press forward. works like regular noclip, but in 2d.

also- if you are referring to the crosshair/reticle, it indicates the direction your aiming, not necessarily the spot your aiming at, if that makes sense?

some 2d maps also implement their own 2d code, which would conflict with this. try playing those without this enabled.
なかの31 3 Oct, 2024 @ 9:45pm 
Uh... The aim sight also seems really off. Like, where my mouse is at is not where the aim sight is aiming.
なかの31 3 Oct, 2024 @ 9:05pm 
Seems to give errors with some 2D maps, like 2D version of Construction and Flatty Woods.
Also, how do I make my character fly downwards when on noclip mode? I literally have to disable noclip to make my character move down.
lockdeezykid 28 Oct, 2023 @ 10:41am 
sweet ill try it
Blue  [author] 27 Oct, 2023 @ 8:01am 
@lockdeezykid

its just an update to this one. if your subscribed to this it should download automatically when you start gmod.
lockdeezykid 26 Oct, 2023 @ 4:36pm 
link please?
Blue  [author] 22 Oct, 2023 @ 12:59pm 
@lockdeezykid

i just now re-uploaded it with a version i know works.

try it out; and if that still doesnt work for you, please make sure that you are in the right gamemode (sandbox 2d) and un-subscribe from old versions of this if you havent already.

hope it helps. if not im not really sure what can fix it.
lockdeezykid 21 Oct, 2023 @ 8:38pm 
i cant do anything like looking around or using spawn menu.
lockdeezykid 21 Oct, 2023 @ 8:36pm 
how to aim?? my mouse wont work.
Blue  [author] 6 Feb, 2023 @ 7:14pm 
@Yer

glad you found the solution; srry my suggestion didnt help
Yer 6 Feb, 2023 @ 6:40pm 
thanks for trying to help tho , i figured out it was cause of multiplayer
Yer 6 Feb, 2023 @ 6:39pm 
weird, because i dont have the og installed
Blue  [author] 6 Feb, 2023 @ 6:00pm 
@Yer

unsubscribe from the original before using this one. thats the exact bug i fixed.
Yer 6 Feb, 2023 @ 5:28pm 
[Sidescrollified - Fixed Version] gamemodes/sandbox2d/gamemode/cl_init.lua:76: attempt to index global 'IsEnabled' (a nil value)
1. unknown - gamemodes/sandbox2d/gamemode/cl_init.lua:76 (x19)
:/
Extem The Hedgehog 27 Sep, 2022 @ 5:54pm 
oh ok lol
Blue  [author] 27 Sep, 2022 @ 3:48pm 
@Extem The Hedgehog

if your subed to the old one too, unsub it. thats the exact same error i already fixed i think; and im probably not gonna fix it 3 more times lol
Extem The Hedgehog 15 Aug, 2022 @ 8:19am 
This just keeps on breaking, doesn't it :(((

[Sidescrollified - Fixed Version] gamemodes/sandbox2d/gamemode/cl_init.lua:90: attempt to index global 'Enabled' (a nil value)
1. v - gamemodes/sandbox2d/gamemode/cl_init.lua:90
2. unknown - lua/includes/modules/hook.lua:96 (x74724)
Blue  [author] 17 Nov, 2021 @ 7:43am 
updated. now it works.
♡ Star ♡ 24 Jul, 2021 @ 2:28pm 
Haven't tried them yet, might check later. Thanks!
Blue  [author] 24 Jul, 2021 @ 12:01pm 
@ONII-CHAN IS MOTIVATED
iirc the 2d construct and 2d flatgrass maps basically have this built in anyways, so they conflict with this addon as a result. try playing those maps without this and see what happens, if it still doesnt work then let me know and i might look into it.

does that happen on any other maps btw?
♡ Star ♡ 24 Jul, 2021 @ 11:55am 
I keep getting this error when moving around 2d construct

[Sidescrollified - Fixed Version] gamemodes/sandbox2d/gamemode/cl_sidescrolling.lua:138: attempt to perform arithmetic on field 'CamDist' (a nil value)
1. unknown - gamemodes/sandbox2d/gamemode/cl_sidescrolling.lua:138 (x3711)
Blue  [author] 8 Jul, 2021 @ 4:00pm 
@ursofrito06

Fixed it. Also fixed a few other things.

glad i finally got around to updating this lol
Guigoso 10 Apr, 2021 @ 12:30pm 
cant move
Blue  [author] 31 Dec, 2020 @ 6:30pm 
@marklaw0 forgot to mention your name in the reply
Blue  [author] 31 Dec, 2020 @ 6:29pm 
2d doesnt work in hl2 campaign because the hl2 capaign maps, by nature, are designed for 3d gameplay.
marklaw0 31 Dec, 2020 @ 6:23pm 
ill ask here since you have responded more to people but how do you move out of the train in campaign or does the 2d campaign mode not work with hl2 campaign?
Blue  [author] 11 Oct, 2020 @ 2:08pm 
@Krinkus if there is a reason i dont know what it might be.

I havent coded stuff for gmod in some time now
Krinkus 11 Oct, 2020 @ 12:17pm 
Is there any reason that my cursor freaks out whenever i load into a map? Cause i cant seem to aim at all.
Blue  [author] 11 Oct, 2020 @ 5:37am 
@soda oh i see, that makes more sense lol. i am not sure how i would implement that to be honest- i know what you mean, kindof like donkey kong country returns, or other side-scrollers with multiple layers. i just dont know a good way to have that implemented directly in this addon; though if im not mistaken, teliporter addons should still work fine even when in sidescroll mode, so you could probably build something using telepads or what-have-you to.

or if you mean more like strafing- that kindof defeats the purpose of a side-scrolling gameplay, in that case.
BeeVee 11 Oct, 2020 @ 3:13am 
ok let me try and be clear because i just scuffed that entire thing up i meant to go backwards or fowards (like to a backround wall and the reversed)
Blue  [author] 11 Oct, 2020 @ 1:05am 
@soda

your kidding me right?
Blue  [author] 10 Oct, 2020 @ 1:40pm 
Ah- yep; that would definetely cause issues. this was indeed coded to work only in SP mainly. glad you found the issue!
IntellectualPotato 10 Oct, 2020 @ 12:56pm 
i have found the problem! this only seems to occur in multiplayer. (even if im the only player) so i guess i cant play with my friends on it
Blue  [author] 10 Oct, 2020 @ 10:20am 
did you make sure to delete any old versions of this you might have, i.e the non-fixed version? cause thats the exact error i fixed in this already
IntellectualPotato 10 Oct, 2020 @ 9:07am 
well. i loaded the gamemode but the console spams this and no spawnmenu works.
[Sidescrollified - Fixed Version] gamemodes/sandbox2d/gamemode/cl_init.lua:76: attempt to index global 'IsEnabled' (a nil value)
1. unknown - gamemodes/sandbox2d/gamemode/cl_init.lua:76 (x59)
Blue  [author] 9 Oct, 2020 @ 4:23pm 
@zorich_michael switch to the 2d version of the sandbox gamemode. (tiny little game controller icon in the bottom right side of the main menu).

this doesnt work in normal sandbox.


if it still doesnt work after that, i dont know what to do about it..srry.
IntellectualPotato 9 Oct, 2020 @ 9:36am 
how do i activate it? the original commands seem to not be appearing either