SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Character Rotation on Slopes (Supports Camera Rolling) Details »»
Character Rotation on Slopes (Supports Camera Rolling)
Version: v7, by Golden Golden is offline
Developer Last Online: Aug 2020

Version: SRB2 Rating: (7 votes - 4.86 average)
Released: 12-21-2019 Last Update: Never Favourites: 12
Scripts Re-Useable Content

Code:
[10:56 PM] Jimita: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[10:58 PM] Tatsuru: Do you wanna play god? Is that what you want?
[11:04 PM] Kitoko: golden this is illegal
The name is pretty self-explanatory. This Lua rotates the sprites of players against the angle of the slope they're on. Note that this only rotates characters using the roll angle; this doesn't require new sprites.

Click image for larger version

Name:	srb20236.gif
Views:	1265
Size:	3.20 MB
ID:	25040

This is also 100% compatible with multiplayer!

Click image for larger version

Name:	srb20117.gif
Views:	1681
Size:	3.08 MB
ID:	24025

Download today!

Commands:
Code:
cameraroll <on/off>: Whether the camera rolling feature is enabled or not.
(Exclusive to 2.2.2 and above). Default OFF. 

cam_rollspeed <decimal>: How quickly the camera fully rolls to the slope you stand on. Default 0.1.

Download Now

File Type: lua VL_sloperollangle-v9.1.lua (5.6 KB, 949 views)

Screenshots

Click image for larger version

Name:	srb20405.gif
Views:	832
Size:	5.31 MB
ID:	26144  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 12-21-2019   #2
Inazuma
Let's see you handle this!
Judge
 
Inazuma's Avatar
Default

I'm so glad that sprite rotation is in the game now. This is awesome!

Welcome to releases!
Inazuma is offline   Reply With Quote
Old 12-21-2019   #3
MK.exe
The one and only!
 
MK.exe's Avatar
Default

This is going to take a bit of getting used too...
__________________
~ MK
MK.exe is offline   Reply With Quote
Old 12-21-2019   #4
RomioTheBadass
PK3 Fetishist
Default

Neat. I wonder how it's going to look like for ceiling slopes with flipped gravity on, or if slope physics even apply to those.
__________________
Also known as "RTB" on Discord
Quote:
I don't need sex because Azure Temple fucks me everyday
RomioTheBadass is offline   Reply With Quote
Old 12-21-2019   #5
TrustyGun
aka. Exoticus
 
TrustyGun's Avatar
Default

It looks so weird, but so right at the same time. Great job!
TrustyGun is offline   Reply With Quote
Old 12-21-2019   #6
DerpyBubblez
Cassie #6004 on Discord
 
DerpyBubblez's Avatar
Default

You should probably fix verticalflip. The tunnel in GFZ1 is a good location for testing.
DerpyBubblez is offline   Reply With Quote
Old 12-21-2019   #7
Goldenhog
Wandering Protagonist
 
Goldenhog's Avatar
Default

This is some black magic I tells ya

Amazing job!
__________________
Quote:
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote
Old 12-21-2019   #8
frozenLake
 
frozenLake's Avatar
Default

God, this would be fantastic in 2D Mode.

Now I wanna see someone do a loop just for the hell of it.
__________________
"ringslinger is more unbalanced than sonics thok" -White, 11/6/2017
frozenLake is offline   Reply With Quote
Old 12-21-2019   #9
Golden
Default

I've updated the script to version 2!

Changelog:
- Fixed problems with characters being incorrectly angled on slopes when vertically flipped. Thank you DerpyBubblez!
__________________
Look for either "GoldenTails", "GoldenSonic", or "GoldenEnchilada" on servers.
Quote:
<~Rumia1> isn't 2d sonic just route memorization?

Last edited by Golden; 12-21-2019 at 06:56 PM.
Golden is offline   Reply With Quote
Old 12-21-2019   #10
Lolour
 
Lolour's Avatar
Default

I don't know what i will use to kill you.
__________________
Lolour on twitter: if srb2 is over, srb3 when?
Lolour is offline   Reply With Quote
Old 12-22-2019   #11
eblu
in meme hell since 2001
 
eblu's Avatar
Default

obviously this was going to be the next step in slope development. now all we need is angles facing forward/backward from the camera but that's obviously going to require way too much spriting work.
eblu is offline   Reply With Quote
Old 12-23-2019   #12
GameBoyTM101
 
GameBoyTM101's Avatar
Default

Honestly, once UDMF drops, this should be vanilla. It's gonna be weird to have angled scenery yet not have player sprite rotation to match.
GameBoyTM101 is offline   Reply With Quote
Old 12-25-2019   #13
DylanDude
Overeager Raposa
 
DylanDude's Avatar
Default

Definitely going to make use of this for some 2D levels.
__________________
Quote:
<Tippi> (And I'm going to believe in HIM most of all...)
DylanDude is offline   Reply With Quote
Old 01-08-2020   #14
Maestro
 
Maestro's Avatar
Default



Doesn't work quite right in splitscreen. The angles seems to be based on player 2's perspective or something.

Not a huge deal or anything, but it's worth pointing out.
Maestro is offline   Reply With Quote
Old 01-15-2020   #15
Golden
Default

Unfortunately this is, from my understanding, unfixable. The way this script works is modifying a variable called "mo.rollangle" to rotate everyone against the slope they stand on based on where the camera is viewing them from. This bug is unfixable (in Lua) because characters can have only one "mo.rollangle" per instance, or window of SRB2. This means that Sonic will always be angled the same on splitscreen, regardless if on Player 1's view or Player 2's view. The reason this script works within netgames is because each player in a (vanilla) SRB2 netgame is a different instance of SRB2, so each player in a netgame can be angled correctly for each player in it.

Also, the reason it shows Player 2's angled perspective is because Player 2 is processed after Player 1 within SRB2 itself, so it calculates the angles for Player 2 and shows the result on both screens.

If, however, someone were to find a way to fix this, either within sloperollangle, or within SRB2 itself, be my guest. If you fix it within sloperollangle, please send a PM so I can update it here and credit you for your work!

EDIT: Added some more contextual info.
EDIT: Correct some wording.
__________________
Look for either "GoldenTails", "GoldenSonic", or "GoldenEnchilada" on servers.
Quote:
<~Rumia1> isn't 2d sonic just route memorization?

Last edited by Golden; 01-15-2020 at 06:54 AM. Reason: Correct wording
Golden is offline   Reply With Quote
Old 02-04-2020   #16
Golden
Default

I've updated the script to version 3!

Changelog:
- Added support for camera rolling. Thank you Fickle!
- Added command "cameraroll"; to toggle camera rolling! (Default OFF).
- Added command "cam_rollspeed": to adjust the rolling speed of the camera. (Default 0.1).
__________________
Look for either "GoldenTails", "GoldenSonic", or "GoldenEnchilada" on servers.
Quote:
<~Rumia1> isn't 2d sonic just route memorization?
Golden is offline   Reply With Quote
Old 02-04-2020   #17
Rumia1
Backseat Developer
 
Rumia1's Avatar
Default

WHOAH! This new effect is awesome!
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...
Rumia1 is offline   Reply With Quote
Old 02-05-2020   #18
Emerald-Night
"Good mo- wait a minute..."
Default

Got one problem.

While trying to do an cameraroll command i noticed an error that it needs an EXE file which supports the view rolling.

I tried to use fickle's EXE file. Still got the same result
__________________
"Likes pizzas."
Emerald-Night is offline   Reply With Quote
Old 02-05-2020   #19
Zanda_Sama
Default

Quote:
Originally Posted by Emerald-Night View Post
Got one problem.

While trying to do an cameraroll command i noticed an error that it needs an EXE file which supports the view rolling.

I tried to use fickle's EXE file. Still got the same result
You mean the latest from the mb? theres an updated file on the kart discord
i dont think you need that though, idk what you need
(wish i knew how to delete my own comment)

Last edited by Zanda_Sama; 02-05-2020 at 01:51 AM.
Zanda_Sama is offline   Reply With Quote
Old 02-05-2020   #20
Emerald-Night
"Good mo- wait a minute..."
Default

Quote:
Originally Posted by Zanda_Sama View Post
You mean the latest from the mb? theres an updated file on the kart discord
i dont think you need that though, idk what you need
(wish i knew how to delete my own comment)
Yep. That latest one from the MB
__________________
"Likes pizzas."
Emerald-Night is offline   Reply With Quote
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 Off

Forum Jump


All times are GMT. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.