SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Lua (https://mb.srb2.org/forumdisplay.php?f=121)
-   -   Smash Cam - A Smash Bros-like dynamic 2D Camera (https://mb.srb2.org/showthread.php?t=47104)

Flame 04-11-2020 05:38 AM

Smash Cam - A Smash Bros-like dynamic 2D Camera
 
3 Attachment(s)
A script that aims to provide versatility to 2D Mode. It is my hope that script can open up the doors to some 2D Match maps in the future.

https://mb.srb2.org/attachment.php?attachmentid=29457

What's included?
  • Custom Map (MAP01) - Toasted Hills Zone by Akirahedgehog (This is a demonstraction map. Ported from 1.09.4, please excuse any errors)
  • 2 Lua scripts - One for object definition, and one for execution

But Flame! How do I use this?
Simple! On top of adding the 2D level parameter to your Level header, this script only adds 2 new objects. These include the Camera Minimum and Camera Maximum x, y, z boundaries. Please read carefully, this assumes you're working in Zone builder with a top-down oriented view.
  • Camera Minimum (mapthingnum 3095) boundary - Put this boundary in the map to define the CLOSEST point where your camera object cannot pass.
    • This boundary sets the following:
      • Leftmost X boundary
      • Uppermost Y boundary
      • Lowest Z boundary
  • Camera Maximum (mapthingnum 3096) boundary - Put this boundary in the map to define the FURTHEST point where your camera object cannot pass.
    • This boundary sets the following:
      • Rightmost X boundary
      • Lowermost Y boundary
      • Highest Z boundary

Issues, Problems, bugs?
  • Through rigorous testing, I've ironed out a lot of issues in coding this. If there is anything that would cause this code to behave irregularly, or stop working, please report it!
  • While this code works without the need for these camera boundaries, I cannot guarantee it will function the same way without them.

Special notes
  • Vanilla console commands such as cam_dist and cam_height are available
  • Vanilla button inputs such as your look up/down keys are also available if you're not content with the viewing angle.
  • If you intend to use this for your own purposes, all I ask is for some credit. That's all. :)

D00D64 04-12-2020 02:11 PM

Welcome to releases!

Icarus 04-13-2020 12:34 PM

Can it works in 3D? I would love to see a Power-Stone like mod (combined with Battle Mode indeed).


I've always loved the way Smash Bros' camera worked and I wish more devs could take inspiration for some of their game

Larz T 04-13-2020 09:52 PM

I feel like this is an essential script to have now when playing or even creating any 2D sections/levels in the future. Thanks for the release!


All times are GMT. The time now is 08:50 AM.

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