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: v5, by Golden Golden is offline
Developer Last Online: Feb 2020

Version: SRB2 Rating: (4 votes - 4.40 average)
Released: 12-21-2019 Last Update: Never Installs: 7
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:	510
Size:	3.20 MB
ID:	25040

This is also 100% compatible with multiplayer!

Click image for larger version

Name:	srb20117.gif
Views:	1160
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-v6.lua (5.3 KB, 189 views)

Screenshots

Click image for larger version

Name:	srb20405.gif
Views:	375
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 2 Weeks Ago   #22
Golden
Default

If it helps, I tested the camera rolling using the code from this.
__________________
Look for either "GoldenTails", "GoldenSonic", or "GoldenEnchilada" on servers.
Quote:
<~Rumia1> isn't 2d sonic just route memorization?

Last edited by Golden; 2 Weeks Ago at 09:43 PM. Reason: Clarification.
Golden is offline   Reply With Quote
Old 2 Weeks Ago   #23
TrustyGun
aka. Exoticus
 
TrustyGun's Avatar
Default

I said earlier that it look kind of weird, but with the camera roll added in, it now looks really cool. Honestly, I wish that this was a vanilla feature!

I found a bug though: It appears that the viewroll doesn't work properly in first person mode. (I'm using the build from the MR.)
Attached Thumbnails
Click image for larger version

Name:	srb20057.gif
Views:	73
Size:	2.44 MB
ID:	26278  
TrustyGun is offline   Reply With Quote
Old 2 Weeks Ago   #24
Golden
Default

I've updated the script to version 4!

Changelog:
- Fixed a bug where first-person mode would cause the camera to get angled incorrectly. Thank you TrustyGun!
Trippy...

Click image for larger version

Name:	srb20452.gif
Views:	56
Size:	1.71 MB
ID:	26371
__________________
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 1 Week Ago   #25
TSHYGUY
Default

Quote:
Originally Posted by Emerald-Night View Post
Yep. That latest one from the MB
Interesting, because I just downloaded the latest one from the MB and I'm getting the same error as the previous dude so if someone could explain to me what's wrong that'd be a big help.
TSHYGUY is offline   Reply With Quote
Old 1 Week Ago   #26
K.E.K.
 
K.E.K.'s Avatar
Default

Hey there, sorry for asking but, how do I actually get fickle's viewroll... thing? What am I missing?
__________________
Thank you for enabling my account so that I can ask stupid questions that are easily answered by using e y e s .
K.E.K. is offline   Reply With Quote
Old 1 Week Ago   #27
Golden
Default

I've updated the script to version 5!

Changelog:
- Removed adjustment that was originally required to make the character rotation look perfect. Thank you Jimita (and 2.2.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 1 Week Ago   #28
TSHYGUY
Default

Just downloaded 2.2.1 and the latest version of this and I'm still getting a "Please download Fickle's viewroll EXE or a newer version of SRB2" error message. Some help would be very much appreciated. At least point those of us that are lost on this in the right direction...
TSHYGUY is offline   Reply With Quote
Old 1 Week Ago   #29
SCOTT0852
 
SCOTT0852's Avatar
Default

Quote:
Originally Posted by TSHYGUY View Post
Just downloaded 2.2.1 and the latest version of this and I'm still getting a "Please download Fickle's viewroll EXE or a newer version of SRB2" error message.
Viewroll actually didn't make it into 2.2.1, fickle's viewroll code doesn't have 2.2.1 support either yet. I'm sure the viewroll code will be updated soon though.
__________________
Trans rights!
SCOTT0852 is offline   Reply With Quote
Old 2 Days Ago   #30
Golden
Default

I've updated the script to version 6!

Changelog:
- Fixed netplay with camera rolling and made it save to your config. Thank you 2.2.2 (for motivation)!
__________________
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 52 Minutes Ago   #31
Shadon
Professional ass-merchant
 
Shadon's Avatar
Default

I've been using this with Jeck's new models for 2.2.2, and I've noticed that the tilt angle doesn't change on slopes when I move the camera. Is this something fixable? Is model compatibility planned at all?
__________________
Spoiler:
Quote:
Originally Posted by Shaddy Zaphod
Satanism is just Atheism wearing a funny hat
Quote:
Originally Posted by Saltstorm
Go yiff yourself
Shadon 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 09:44 PM.


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