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: Mar 2020

Version: SRB2 Rating: (5 votes - 4.80 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:	790
Size:	3.20 MB
ID:	25040

This is also 100% compatible with multiplayer!

Click image for larger version

Name:	srb20117.gif
Views:	1365
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-v7.lua (5.3 KB, 482 views)

Screenshots

Click image for larger version

Name:	srb20405.gif
Views:	562
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 02-07-2020   #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; 02-07-2020 at 09:43 PM. Reason: Clarification.
Golden is offline   Reply With Quote
Old 02-08-2020   #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:	100
Size:	2.44 MB
ID:	26278  
TrustyGun is offline   Reply With Quote
Old 02-10-2020   #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:	81
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 02-13-2020   #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 02-14-2020   #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 02-17-2020   #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 02-17-2020   #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 02-17-2020   #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 02-22-2020   #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 02-25-2020   #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
Old 4 Weeks Ago   #32
Golden
Default

I've updated the script to version 7!

Changelog:
- Vertical flipping strikes back! This time it was the camera rolling. I'm surprised nobody reported this.. Thanks go to ceiling slopes for existing.
__________________
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 3 Weeks Ago   #33
Zippy_Zolton
Thokkers!
 
Zippy_Zolton's Avatar
Default

Quote:
Originally Posted by Golden View Post
I've updated the script to version 7!
- Vertical flipping strikes back! This time it was the camera rolling. I'm surprised nobody reported this.. Thanks go to ceiling slopes for existing.

That'll be useful when my level has complex slope platforming while you're flipped :^)
__________________
Twitter Discord
Zippy_Zolton is offline   Reply With Quote
Old 2 Weeks Ago   #34
carlrev
The living revolution
 
carlrev's Avatar
Default

This script makes the game lag.
__________________
Greetings from 2391!
carlrev 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 AM.


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