YesNoOk
avatar

Stage Element Bounds (Read 2858 times)

Started by Azul Crescent, October 21, 2016, 12:13:10 am
Share this topic:
Stage Element Bounds
#1  October 21, 2016, 12:13:10 am
  • ***
  • ★ Graphical Enthusiast ★
    • Japan
So i want to have a stages floor make it so you can't walk past it after a certain distance. Its hard to explain it in good detail.

Lets say you have a stage with a bridge, the camera goes past the edge of the bridge so normally the characters will walk off the edge of the bridge till they hit the edge of the stage bounds.

Now sure, you could just edit the common bounds to make it stop at the bridge, but then it cuts off sides of the stage that are perfectly fine.

A good example is this stage, which has that effect.


Notice Sephiroth is at the edge of the bridge/pier. You can't run any farther then that but the stages bounds are further out.

I tried looking through the stages def file but i can't find anything that has that effect.

The stage i want to apply this on is Midgar by PabloSSB.
Re: Stage Element Bounds
#2  October 21, 2016, 03:33:43 am
  • *****
Edit left and right bounds, there is also other bounds to edit in the DEF if you are not happy how the 1st bounds came out, use the 2nd ones only if a projectile gets stuck on the edge of the screen.
The screenshot it seems like you only have to edit the bounds found in the begining of the def file. Just lower them, lets say you have boundleft = 400 boundright =-400  just make em 350 or something.

Be sure to keep them the same value, cause then one player has an advantage, cause the other player will get cornerd quickly.

Here my settings for the midgar stage. If you keep the zoom on .7 projectiles wont break.
Thats the MIDGAR BIG.def as well.

[Camera]
startx       = 0
starty       = 0
boundleft    = -450
boundright    = 450
boundhigh    = -2500
boundlow    = -80
tension    = 450
verticalfollow    = .1
floortension    = 200
overdrawhigh    = 120
overdrawlow    = 120
cuthigh    = 0
cutlow       = 0
tensionhigh = 480
tensionlow = -20
zoomin = .8
zoomout = .7


Edit: If you want the screen to go up when you jump edit the verticalfollow, I keep it at .1 cause I dont like stages moving up and down when I jump.
Last Edit: October 21, 2016, 03:51:38 am by PeXXeR
Re: Stage Element Bounds
#3  October 21, 2016, 06:49:41 am
  • ***
  • ★ Graphical Enthusiast ★
    • Japan
Edit left and right bounds, there is also other bounds to edit in the DEF if you are not happy how the 1st bounds came out, use the 2nd ones only if a projectile gets stuck on the edge of the screen.
The screenshot it seems like you only have to edit the bounds found in the begining of the def file. Just lower them, lets say you have boundleft = 400 boundright =-400  just make em 350 or something.

Be sure to keep them the same value, cause then one player has an advantage, cause the other player will get cornerd quickly.

Here my settings for the midgar stage. If you keep the zoom on .7 projectiles wont break.
Thats the MIDGAR BIG.def as well.

[Camera]
startx       = 0
starty       = 0
boundleft    = -450
boundright    = 450
boundhigh    = -2500
boundlow    = -80
tension    = 450
verticalfollow    = .1
floortension    = 200
overdrawhigh    = 120
overdrawlow    = 120
cuthigh    = 0
cutlow       = 0
tensionhigh = 480
tensionlow = -20
zoomin = .8
zoomout = .7


Edit: If you want the screen to go up when you jump edit the verticalfollow, I keep it at .1 cause I dont like stages moving up and down when I jump.

I already have those as my bounds, and i get that you can do that.

What im talking about is making the bounds farther out, enough so it doesn't go past the stages bg (black area), but making it so the characters can only walk on the platform and not off of it.

The first image i have up on the OP, has that. You can't walk past the pier on the right. But the bounds are farther then the bridge.
Re: Stage Element Bounds
#4  October 21, 2016, 06:58:12 am
  • *****
Ohh my bad.
Use these then.
[Bound]
screenleft    = 0
screenright    = 0

I have a feeling what you want to do has to be a combination of the ones above and these ones
leftbound  = -8000
rightbound =  8000

Ive done this shit before.
Last Edit: October 21, 2016, 07:03:27 am by PeXXeR
Re: Stage Element Bounds
#5  October 21, 2016, 07:10:31 am
  • ***
  • ★ Graphical Enthusiast ★
    • Japan
Ohh my bad.
Use these then.
[Bound]
screenleft    = 0
screenright    = 0

I have a feeling what you want to do has to be a combination of the ones above and these ones
leftbound  = -8000
rightbound =  8000

Ive done this shit before.

Alright so i got the effect working but now no matter what values i use it just ignores my top bounds and makes it so the stage's camera never moves so its locked.
Re: Stage Element Bounds
#6  October 21, 2016, 08:11:39 am
  • *****
I figured it out, change the 8000 ones only to somethin like 1500 or lower and it will work.

Edit got mine ot work on 1250, but that depends on your zoom settings.

Ill give you my def if you have any issues. I do have a feeling though some projectails may get stuck there, I am not sure though.


[Camera]
startx       = 0
starty       = 0
boundleft    = -800
boundright    = 800
boundhigh    = -2500
boundlow    = -80
tension    = 450
verticalfollow    = .1
floortension    = 200
overdrawhigh    = 120
overdrawlow    = 120
cuthigh    = 0
cutlow       = 0
tensionhigh = 480
tensionlow = -20
zoomin = .7
zoomout = .7


[PlayerInfo]
p1startx = -270
p1starty = 0
p1facing = 1
p2startx = 270
p2starty = 0
p2facing = -1
p3startx = -290
p3starty = 0
p3facing = 1
p4startx = 290
p4starty = 0
p4facing = -1
leftbound  = -1250
rightbound =  1250

[Bound]
screenleft    = 0
screenright    = 0
Last Edit: October 21, 2016, 08:19:13 am by PeXXeR
Re: Stage Element Bounds
#7  October 21, 2016, 08:15:39 am
  • ***
  • ★ Graphical Enthusiast ★
    • Japan
I figured it out, change the 8000 ones only to somethin like 1500 or lower and it will work.

Ok, thats good but it gets rid of my first bounds still, and the chars still go off the stage and hit the edges of the screen.

I was able to get the chars to not go to the edge of the screen but then my regular bounds are ignored and messed up.
Re: Stage Element Bounds
#8  October 21, 2016, 08:19:43 am
  • *****
I edited my post check it out. The settings I gave you work for me I will do a video if you want.
Re: Stage Element Bounds
#9  October 21, 2016, 08:23:04 am
  • ***
  • ★ Graphical Enthusiast ★
    • Japan
I edited my post check it out. The settings I gave you work for me I will do a video if you want.

OMG THAT WORKED!!

At first it didn't, but i found out the Tension was the issue. I changed it to your value (from 50 to 450) and that worked!

THANKS SO MUCH!! :D
Re: Stage Element Bounds
#10  October 21, 2016, 08:25:20 am
  • *****
Glad I could help, I did test the projectile thing, for them to not get stuck on the edge there, they have to offscreen themselves, keep that in mind. Its a cool effect though, Mugen is iffy as hell. You have to edit the chars for that to work properly though.